mirror of
https://github.com/sbopkg/sbopkg
synced 2024-12-26 09:58:14 +01:00
corrected a problem in dir_init() w/older bashes
Changed an implicit array reference to DI_OUTPUT to an explicit one. Also made a potential error message declare its origin.
This commit is contained in:
parent
c066f66f9c
commit
23fc2049ca
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue