Skip to content

Commit a54724c

Browse files
committed
Improved bootstrap install script.
Improved directory change statement to be more compact. Signed-off-by: kilo52 <[email protected]>
1 parent eb715a1 commit a54724c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

bootstrap/install.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,7 @@ function install_project_init() {
189189
fi
190190
fi
191191
# First download the file to a temporary directory
192-
cd "/tmp";
193-
cmd_exit_status=$?;
194-
if (( cmd_exit_status != 0 )); then
192+
if ! cd "/tmp"; then
195193
echo "ERROR: Failed to switch to system's temporary directory";
196194
return 1;
197195
fi

0 commit comments

Comments
 (0)