gentooup: fix "" taken as positional argument; in return fix another shellchecker issue

This commit is contained in:
layman 2020-09-07 11:42:49 +02:00
parent 18e525f8ee
commit f0e266d64d

View file

@ -54,7 +54,7 @@ if [[ $CHROOTED == 1 ]] ; then
fi fi
#any parameter prevents syncing #any parameter prevents syncing
if [[ ! -z ${SYNC_COMMAND} ]] ; then if [[ -n ${SYNC_COMMAND} ]] ; then
${SYNC_COMMAND} ${SYNC_COMMAND}
eix-update >& /dev/null eix-update >& /dev/null
fi fi
@ -75,8 +75,7 @@ myemerge() {
echo "emerge return value: $?" echo "emerge return value: $?"
} }
myemerge "$PORTAGE_ASK" "${PORTAGE_UPGRADE_OPTIONS[@]}" "${PORTAGE_OPTIONS[@]}" world myemerge $PORTAGE_ASK "${PORTAGE_UPGRADE_OPTIONS[@]}" "${PORTAGE_OPTIONS[@]}" world
echo "emerge return value: $?"
if [[ $INTERACTIVE == 1 ]] ; then if [[ $INTERACTIVE == 1 ]] ; then
dispatch-conf dispatch-conf
echo "dispatch-conf return value: $?" echo "dispatch-conf return value: $?"