feat: fallback to busybox dos2unix

This commit is contained in:
Ming Di Leom 2022-11-03 08:48:46 +00:00
parent e6f919fa43
commit 45ac548a0c
No known key found for this signature in database
GPG Key ID: 32D3E28E96A695E8
1 changed files with 7 additions and 0 deletions

View File

@ -19,6 +19,13 @@ if [ -z "$(grep --help | grep 'GNU')" ]; then
fi
## Fallback to busybox dos2unix
if ! command -v dos2unix &> /dev/null
then
alias dos2unix="busybox dos2unix"
fi
## Create a temporary working folder
mkdir -p "tmp/"
cd "tmp/"