clear insgtallation first

This commit is contained in:
Q
2025-11-04 13:55:08 +02:00
parent 06914ca2d0
commit 334a4ee733

2
rc
View File

@@ -41,8 +41,8 @@ function _q-tools-update-binary {
if [[ "$remote_version" != "$current_version" ]]; then if [[ "$remote_version" != "$current_version" ]]; then
set -u set -u
echo "Update $current_version => $remote_version" echo "Update $current_version => $remote_version"
#rm -rf "$QTOOLSPATH"
mkdir -p "$QTOOLSPATH" mkdir -p "$QTOOLSPATH"
find "$QTOOLSPATH" -maxdepth 1 -mindepth 1 -type d -exec rm -r \{\};
curl -L -f -s https://six9.net/software/q-tools/current.tar.gz | \ curl -L -f -s https://six9.net/software/q-tools/current.tar.gz | \
tar xz -C "$QTOOLSPATH" tar xz -C "$QTOOLSPATH"
set +u set +u