From f0e266d64db115dc01193a8ba4476d5ea8cd0579 Mon Sep 17 00:00:00 2001 From: layman Date: Mon, 7 Sep 2020 11:42:49 +0200 Subject: [PATCH] gentooup: fix "" taken as positional argument; in return fix another shellchecker issue --- gentooup.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gentooup.sh b/gentooup.sh index ad145e2..9eb72aa 100755 --- a/gentooup.sh +++ b/gentooup.sh @@ -54,7 +54,7 @@ if [[ $CHROOTED == 1 ]] ; then fi #any parameter prevents syncing -if [[ ! -z ${SYNC_COMMAND} ]] ; then +if [[ -n ${SYNC_COMMAND} ]] ; then ${SYNC_COMMAND} eix-update >& /dev/null fi @@ -75,8 +75,7 @@ myemerge() { echo "emerge return value: $?" } -myemerge "$PORTAGE_ASK" "${PORTAGE_UPGRADE_OPTIONS[@]}" "${PORTAGE_OPTIONS[@]}" world -echo "emerge return value: $?" +myemerge $PORTAGE_ASK "${PORTAGE_UPGRADE_OPTIONS[@]}" "${PORTAGE_OPTIONS[@]}" world if [[ $INTERACTIVE == 1 ]] ; then dispatch-conf echo "dispatch-conf return value: $?"