Skip to content

Commit 264027a

Browse files
committed
Improved bootstrap install script.
Improved command exit status handling. Signed-off-by: kilo52 <[email protected]>
1 parent a54724c commit 264027a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

bootstrap/install.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,8 +295,7 @@ function uninstall_project_init() {
295295
return 1;
296296
fi
297297
# Remove installed file
298-
rm "$FOUND_INSTALLATION";
299-
if (( cmd_exit_status != 0 )); then
298+
if ! rm "$FOUND_INSTALLATION"; then
300299
echo "ERROR: Failed to remove file '${FOUND_INSTALLATION}'";
301300
return 1;
302301
fi

0 commit comments

Comments
 (0)