fix: unzip alternatives
This commit is contained in:
parent
bffec4485d
commit
2cb4acb693
|
@ -17,7 +17,20 @@ fi
|
||||||
alias cp="cp -f"
|
alias cp="cp -f"
|
||||||
alias curl="curl -L"
|
alias curl="curl -L"
|
||||||
alias mkdir="mkdir -p"
|
alias mkdir="mkdir -p"
|
||||||
alias unzip="unzip -jo"
|
|
||||||
|
if command -v unzip &> /dev/null
|
||||||
|
then
|
||||||
|
alias unzip="unzip -jo"
|
||||||
|
elif command -v busybox &> /dev/null
|
||||||
|
then
|
||||||
|
alias unzip="busybox unzip -jo"
|
||||||
|
elif command -v bsdunzip &> /dev/null
|
||||||
|
then
|
||||||
|
alias unzip="bsdunzip -jo"
|
||||||
|
else
|
||||||
|
echo "unzip not found"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
mkdir "tmp/"
|
mkdir "tmp/"
|
||||||
cd "tmp/"
|
cd "tmp/"
|
||||||
|
|
Loading…
Reference in New Issue