mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2026-04-15 23:47:24 +02:00
Fixed SC2164: Use 'cd ... || exit' in case cd fails.
This commit is contained in:
committed by
Joshua Tauberer
parent
30c4681e80
commit
33559bb844
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user