Fix unbound variable errors

This commit is contained in:
2022-06-02 16:08:07 +02:00
parent a6eeccb417
commit 4f8c1b5388
15 changed files with 85 additions and 86 deletions

View File

@@ -119,7 +119,7 @@ parseList() {
else
error -e "Command list not found: $1"
fi
if [ ! -z "$1" ] && dry || interactive ; then
if [ -n "${1:-}" ] && dry || interactive ; then
read -p " Create template there y/[n]? " answer
case "$answer" in
y|Y)