diff --git a/src/script.sh b/src/script.sh index 466d5a27..c979fc2f 100644 --- a/src/script.sh +++ b/src/script.sh @@ -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