fixes for lint and typo

pull/245/head
joshr 6 years ago
parent fda5a0ad21
commit 2a1a8cb58b

@ -18,7 +18,9 @@ function __sha256_linux {
} }
function __get_octal_perms_linux { function __get_octal_perms_linux {
local file=$1 local filename
perms=$(stat --format "'%a'" "$filename") filename=$1
echo "$perms" local perms
perms=$(stat --format "'%a'" "$filename")
echo "$perms"
} }

@ -19,7 +19,8 @@ function __sha256_osx {
/usr/bin/shasum -a256 "$1" /usr/bin/shasum -a256 "$1"
} }
function __get_octal_perms_osx { function __get_octal_perms_osx {
local file=$1 local filename
filename=$1
local perms local perms
perms=$(stat -f "'%p'" "$filename") perms=$(stat -f "'%p'" "$filename")
echo "$perms" echo "$perms"

Loading…
Cancel
Save