From a4e41009e93291fb38079efb98980ee414552314 Mon Sep 17 00:00:00 2001 From: Nikolas Grottendieck Date: Mon, 10 Apr 2023 19:15:52 +0200 Subject: [PATCH] fix broken "local" declarations --- bootstrap.sh | 5 +---- stow/shell/dot-functions | 4 ++-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/bootstrap.sh b/bootstrap.sh index bf59105152a..cf52b715712 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -23,10 +23,7 @@ function doIt() { } function setGitUser() { - username="" - email="" - signingKey="" - signWithSSH="" + local username email signingKey signWithSSH read -rp "Enter your Git Username: " username read -rp "Enter your Git E-Mail address: " email echo " diff --git a/stow/shell/dot-functions b/stow/shell/dot-functions index 058a495ac14..07c5796d42c 100644 --- a/stow/shell/dot-functions +++ b/stow/shell/dot-functions @@ -84,7 +84,7 @@ function server() { # Compare original and gzipped file size function gz() { - local origsize, gzipsize, ratio + local origsize gzipsize ratio origsize=$(wc -c <"${1}") gzipsize=$(gzip -c "${1}" | wc -c) ratio=$(echo "${gzipsize} * 100 / ${origsize}" | bc -l) @@ -105,7 +105,7 @@ function getcertnames() { return 1 fi - local domain, tmp, certText + local domain tmp certText domain="${1}" echo "Testing ${domain}…"