From 767c4aa813e819e06e7bcffc4e7c60d57de606df Mon Sep 17 00:00:00 2001 From: Josh Harshman Date: Fri, 16 Jun 2023 10:57:16 -0600 Subject: [PATCH] cleanup downloaded archives --- install.sh | 5 +++++ 1 file changed, 5 insertions(+) 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 <