From: Rosen Penev Date: Mon, 6 Jan 2020 02:32:37 +0000 (-0800) Subject: scripts/env: exit in case of failure to cd X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=f80a540dbf9bf87e15f0f29da7f4019064ee207d;p=openwrt%2Fstaging%2F981213.git scripts/env: exit in case of failure to cd Found with shellcheck. Signed-off-by: Rosen Penev --- diff --git a/scripts/env b/scripts/env index 19cfa13841..848850a778 100755 --- a/scripts/env +++ b/scripts/env @@ -147,7 +147,7 @@ env_clear() { else rm -rf "$BASEDIR/files" "$BASEDIR/.config" fi - cd "$BASEDIR" + cd "$BASEDIR" || exit 1 rm -rf "$ENVDIR" }