mirror of
https://github.com/sbopkg/sbopkg
synced 2024-11-09 19:50:25 +03: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
@ -282,7 +282,7 @@ dir_init() {
|
|||||||
DI_OUTPUT+=( "${DI_OUTPUT_LINES[$i]}" )
|
DI_OUTPUT+=( "${DI_OUTPUT_LINES[$i]}" )
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
if [[ $DI_OUTPUT ]]; then
|
if [[ ${DI_OUTPUT[*]} ]]; then
|
||||||
# Keep DI_OUTPUT_LINES and the 'table headers' aligned, too.
|
# Keep DI_OUTPUT_LINES and the 'table headers' aligned, too.
|
||||||
cat << EOF
|
cat << EOF
|
||||||
|
|
||||||
@ -324,7 +324,7 @@ EOF
|
|||||||
|
|
||||||
for ((i=0; i<${#DIR_VARS[*]}; i++)); do
|
for ((i=0; i<${#DIR_VARS[*]}; i++)); do
|
||||||
if [ ! -w ${DIR_VARS[$i]} ]; then
|
if [ ! -w ${DIR_VARS[$i]} ]; then
|
||||||
echo ${DIR_VARS[$i]} not writable
|
echo $SCRIPT: ${DIR_VARS[$i]} not writable
|
||||||
ERROR=nowrite
|
ERROR=nowrite
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user