Skip to content

Commit

Permalink
fix broken "local" declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
Okeanos committed Apr 10, 2023
1 parent cd2e6ff commit a4e4100
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 1 addition & 4 deletions bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 "
Expand Down
4 changes: 2 additions & 2 deletions stow/shell/dot-functions
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -105,7 +105,7 @@ function getcertnames() {
return 1
fi

local domain, tmp, certText
local domain tmp certText

domain="${1}"
echo "Testing ${domain}"
Expand Down

0 comments on commit a4e4100

Please sign in to comment.