fix: check existent of busybox

if dos2unix is not installed
This commit is contained in:
MDLeom 2023-05-20 11:25:09 +00:00
parent 385f6b450e
commit d47888a8a3
No known key found for this signature in database
GPG Key ID: 32D3E28E96A695E8
1 changed files with 8 additions and 2 deletions

View File

@ -37,10 +37,16 @@ check_grep() {
check_grep
## Fallback to busybox dos2unix
## Fallback to busybox's dos2unix if installed
if ! command -v dos2unix &> /dev/null
then
alias dos2unix="busybox dos2unix"
if command -v busybox &> /dev/null
then
alias dos2unix="busybox dos2unix"
else
echo "dos2unix or busybox not found"
exit 1
fi
fi