Update tools.func
This commit is contained in:
parent
1ca01c1b16
commit
83353a772c
@ -919,8 +919,8 @@ function fetch_and_deploy_gh_release() {
|
|||||||
$STD apt-get install -y unzip
|
$STD apt-get install -y unzip
|
||||||
fi
|
fi
|
||||||
$STD unzip "$tmpdir/$filename" -d "$target"
|
$STD unzip "$tmpdir/$filename" -d "$target"
|
||||||
elif [[ "$filename" == *.tar.gz ]]; then
|
elif [[ "$filename" == *.tar.* ]]; then
|
||||||
tar -xzf "$tmpdir/$filename" -C "$target"
|
tar -xf "$tmpdir/$filename" -C "$target"
|
||||||
else
|
else
|
||||||
msg_error "Unsupported archive format: $filename"
|
msg_error "Unsupported archive format: $filename"
|
||||||
rm -rf "$tmpdir"
|
rm -rf "$tmpdir"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user