diff options
Diffstat (limited to 'src/core/libs/lib-software.sh')
-rw-r--r-- | src/core/libs/lib-software.sh | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/core/libs/lib-software.sh b/src/core/libs/lib-software.sh index 6b0527f..93a3c15 100644 --- a/src/core/libs/lib-software.sh +++ b/src/core/libs/lib-software.sh @@ -14,9 +14,8 @@ run_mkinitcpio() target_special_fs off # alert the user to fatal errors - # TODO: on the next line, bash gives '[: -ne: unary operator expected'. seen on 2009-07-21 - [ $mkinitcpio_exitcode -ne 0 ] && show_warning "MKINITCPIO FAILED - SYSTEM MAY NOT BOOT" "$TMP_MKINITCPIO_LOG" text - return $mkinitcpio_exitcode + [ $CONTROLLED_EXIT -ne 0 ] && show_warning "MKINITCPIO FAILED - SYSTEM MAY NOT BOOT" "$TMP_MKINITCPIO_LOG" text + return $CONTROLLED_EXIT } @@ -49,8 +48,7 @@ installpkg() { run_controlled pacman_installpkg "$PACMAN_TARGET --noconfirm -S $ALL_PACKAGES" $TMP_PACMAN_LOG "Installing... Please Wait" local _result='' - # TODO: on the next line, bash gives '[: -ne: unary operator expected'. seen on 2009-07-21 - if [ ${pacman_installpkg_exitcode} -ne 0 ]; then + if [ $CONTROLLED_EXIT -ne 0 ]; then _result="Installation Failed (see errors below)" echo -e "\nPackage Installation FAILED." >>$TMP_PACMAN_LOG else @@ -63,7 +61,7 @@ installpkg() { target_special_fs off sync - return ${pacman_installpkg_exitcode} + return $CONTROLLED_EXIT } |