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:
parent
58be3194c0
commit
4175448b36
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user