scripts/env: exit in case of failure to cd
Found with shellcheck. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
e68810ba53
commit
f80a540dbf
@ -147,7 +147,7 @@ env_clear() {
|
||||
else
|
||||
rm -rf "$BASEDIR/files" "$BASEDIR/.config"
|
||||
fi
|
||||
cd "$BASEDIR"
|
||||
cd "$BASEDIR" || exit 1
|
||||
rm -rf "$ENVDIR"
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user