diff --git a/install.sh b/install.sh index eca87bd..52c1cde 100755 --- a/install.sh +++ b/install.sh @@ -6,6 +6,9 @@ OS=$(uname -s | tr -d '\n') ARCH=$(uname -m | tr -d '\n') RELEASE=https://github.com/jharshman/fwsync/releases/download/${VERSION}/fwsync_${OS}_${ARCH}.tar.gz +# delete any existing archives otherwise noop +rm -f fwsync_${OS}_${ARCH}.tar.gz* || : + which wget > /dev/null 2>&1 if [[ $? != 0 ]]; then echo "FATAL missing wget" @@ -36,3 +39,5 @@ cat <