Skip to content

Commit fb3301d

Browse files
committed
Improved error handling when cd fails.
Signed-off-by: kilo52 <[email protected]>
1 parent 0551612 commit fb3301d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bootstrap/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ function main() {
239239
if [ -x "$PROJECT_INIT_SCRIPT_MAIN" ]; then
240240
# Correct working paths
241241
local CACHE_LOCATION_BASE="$PWD";
242-
cd "${_USER_CWD}";
242+
cd "${_USER_CWD}" || return 1;
243243

244244
# Run the Project Init main script
245245
bash "${CACHE_LOCATION_BASE}/${PROJECT_INIT_SCRIPT_MAIN}" "$@";

0 commit comments

Comments
 (0)