Skip to content

Commit

Permalink
cleanup downloaded archives
Browse files Browse the repository at this point in the history
  • Loading branch information
jharshman committed Jun 16, 2023
1 parent 745c80b commit 767c4aa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -36,3 +39,5 @@ cat <<EOM
* Restart your Terminal for the changes to take effect.
********************************************************
EOM

rm -f fwsync_${OS}_${ARCH}.tar.gz

0 comments on commit 767c4aa

Please sign in to comment.