1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-06-30 22:40:55 +00:00

Fixed SC2164: Use 'cd ... || exit' in case cd fails.

This commit is contained in:
Teal Dulcet 2023-12-21 07:02:42 -08:00
parent 58be3194c0
commit 4175448b36

View File

@ -74,7 +74,7 @@ if [ ! -d "$HOME/mailinabox" ]; then
fi fi
# Change directory to it. # Change directory to it.
cd "$HOME/mailinabox" cd "$HOME/mailinabox" || exit
# Update it. # Update it.
if [ "$TAG" != $(git describe --always) ]; then if [ "$TAG" != $(git describe --always) ]; then