Skip to content

Commit

Permalink
fix syntax for local variables in bash script(s)
Browse files Browse the repository at this point in the history
  • Loading branch information
Okeanos committed Apr 10, 2023
1 parent c37caf1 commit 54802bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stow/shell/dot-functions
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,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 @@ -100,7 +100,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 54802bc

Please sign in to comment.