Update tools.func
This commit is contained in:
parent
d361d23a2d
commit
ce33ab61b5
@ -925,7 +925,7 @@ function fetch_and_deploy_gh_release() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
mkdir -p "$target"
|
mkdir -p "$target"
|
||||||
if [[ "$filename" == *.zip ]]; then
|
if [[ "$filename" == *.zip ]]; then
|
||||||
if ! command -v unzip &>/dev/null; then
|
if ! command -v unzip &>/dev/null; then
|
||||||
$STD apt-get install -y unzip
|
$STD apt-get install -y unzip
|
||||||
fi
|
fi
|
||||||
@ -950,6 +950,7 @@ function fetch_and_deploy_gh_release() {
|
|||||||
tar --strip-components=1 -xf "$tmpdir/$filename" -C "$target"
|
tar --strip-components=1 -xf "$tmpdir/$filename" -C "$target"
|
||||||
else
|
else
|
||||||
tar -xf "$tmpdir/$filename" -C "$target"
|
tar -xf "$tmpdir/$filename" -C "$target"
|
||||||
|
fi
|
||||||
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