mirror of
https://github.com/leitbogioro/Tools.git
synced 2024-11-15 13:44:50 +08:00
Update InstallNET.sh
This commit is contained in:
parent
e31c846886
commit
e4a20477fa
1 changed files with 2 additions and 2 deletions
|
@ -994,9 +994,9 @@ if [[ "$ddMode" == '1' ]]; then
|
|||
echo "$DDURL" | grep -q '^http://\|^ftp://\|^https://';
|
||||
[[ $? -ne '0' ]] && echo 'Please input vaild URL, Only support http://, ftp:// and https:// !' && exit 1;
|
||||
# Decompress command selection
|
||||
if [[ -n `echo "$DDURL" | grep -q '.gz'` ]] || [[ "$setFileType" == "gz" ]]; then
|
||||
if [[ $(echo "$DDURL" | grep '.gz') != "" ]] || [[ "$setFileType" == "gz" ]]; then
|
||||
DEC_CMD="gunzip -dc"
|
||||
elif [[ -n `echo "$DDURL" | grep -q '.xz'` ]] || [[ "$setFileType" == "xz" ]]; then
|
||||
elif [[ $(echo "$DDURL" | grep '.xz') != "" ]] || [[ "$setFileType" == "xz" ]]; then
|
||||
DEC_CMD="xzcat"
|
||||
else
|
||||
echo 'Please input vaild URL, Only support gz or xz file!' && exit 1
|
||||
|
|
Loading…
Reference in a new issue