fix: unzip alternatives

This commit is contained in:
MDLeom 2024-07-15 09:42:30 +00:00
parent bffec4485d
commit 2cb4acb693
No known key found for this signature in database
GPG Key ID: 32D3E28E96A695E8
1 changed files with 14 additions and 1 deletions

View File

@ -17,7 +17,20 @@ fi
alias cp="cp -f"
alias curl="curl -L"
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/"
cd "tmp/"