From 211d4fd62a8766216a0640852930a53b776c132f Mon Sep 17 00:00:00 2001 From: Q Date: Wed, 5 Nov 2025 17:52:30 +0200 Subject: [PATCH] break update if cant download --- rc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rc b/rc index c48b680..e344e9e 100755 --- a/rc +++ b/rc @@ -43,9 +43,10 @@ function _q-tools-update-binary { set -u echo "Update $current_version => $remote_version" mkdir -p "$QTOOLSPATH" + curl -L -f -s https://six9.net/software/q-tools/current.tar.gz > "$QTOOLSPATH"/current.tar.gz || return find "$QTOOLSPATH" -maxdepth 1 -mindepth 1 -type d -exec rm -r \{\} \; - curl -L -f -s https://six9.net/software/q-tools/current.tar.gz | \ - tar xz -C "$QTOOLSPATH" + tar -xz -C "$QTOOLSPATH" -f "$QTOOLSPATH"/current.tar.gz || return + rm "$QTOOLSPATH"/current.tar.gz set +u fi fi