clear insgtallation first
This commit is contained in:
2
rc
2
rc
@@ -41,8 +41,8 @@ function _q-tools-update-binary {
|
||||
if [[ "$remote_version" != "$current_version" ]]; then
|
||||
set -u
|
||||
echo "Update $current_version => $remote_version"
|
||||
#rm -rf "$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 | \
|
||||
tar xz -C "$QTOOLSPATH"
|
||||
set +u
|
||||
|
||||
Reference in New Issue
Block a user