diff --git a/src/usr/sbin/sbopkg b/src/usr/sbin/sbopkg index d070257..0050495 100755 --- a/src/usr/sbin/sbopkg +++ b/src/usr/sbin/sbopkg @@ -282,7 +282,7 @@ dir_init() { DI_OUTPUT+=( "${DI_OUTPUT_LINES[$i]}" ) fi done - if [[ $DI_OUTPUT ]]; then + if [[ ${DI_OUTPUT[*]} ]]; then # Keep DI_OUTPUT_LINES and the 'table headers' aligned, too. cat << EOF @@ -324,7 +324,7 @@ EOF for ((i=0; i<${#DIR_VARS[*]}; i++)); do if [ ! -w ${DIR_VARS[$i]} ]; then - echo ${DIR_VARS[$i]} not writable + echo $SCRIPT: ${DIR_VARS[$i]} not writable ERROR=nowrite fi done