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

This commit is contained in:
Teal Dulcet
2024-04-03 09:21:34 -04:00
committed by Joshua Tauberer
parent 30c4681e80
commit 33559bb844
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -74,7 +74,7 @@ if [ ! -d "$HOME/mailinabox" ]; then
fi
# Change directory to it.
cd "$HOME/mailinabox"
cd "$HOME/mailinabox" || exit
# Update it.
if [ "$TAG" != $(git describe --always) ]; then