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
|
else
|
||||||
rm -rf "$BASEDIR/files" "$BASEDIR/.config"
|
rm -rf "$BASEDIR/files" "$BASEDIR/.config"
|
||||||
fi
|
fi
|
||||||
cd "$BASEDIR"
|
cd "$BASEDIR" || exit 1
|
||||||
rm -rf "$ENVDIR"
|
rm -rf "$ENVDIR"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user