From c26555ed9c5e9303e3823af1be89f1cb9231c87e Mon Sep 17 00:00:00 2001 From: Alex Kaplan Date: Sat, 12 Sep 2015 20:15:36 -0700 Subject: [PATCH] bugs fixed --- chip-update-firmware.sh | 2 +- common.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/chip-update-firmware.sh b/chip-update-firmware.sh index b93faf3..9e03005 100755 --- a/chip-update-firmware.sh +++ b/chip-update-firmware.sh @@ -21,7 +21,7 @@ function cache_download { } -while getopts ":u:f" opt; do +while getopts "uf" opt; do case $opt in u) echo "updating cache" diff --git a/common.sh b/common.sh index 298c115..2a21e0a 100644 --- a/common.sh +++ b/common.sh @@ -10,8 +10,8 @@ onMac() { filesize() { if onMac; then - stat -f%z $0 + stat -f%z $1 else - stat --printf="%s" $0 + stat --printf="%s" $1 fi }