mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2026-03-28 19:47:23 +01:00
Fixed SC2164: Use 'cd ... || exit' in case cd fails.
This commit is contained in:
@@ -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