Change all scripts to use the BASH interpreter, as some SH versions do not

handle a lot of things correctly.
This commit is contained in:
Sam Hardeman 2025-12-31 16:06:50 +01:00
parent e3a2efdb43
commit 33ca0e1422
11 changed files with 30 additions and 16 deletions

View file

@ -27,8 +27,15 @@ fi
# Check for dependencies
function daisy_dependency_check
{
command -v $1 1>/dev/null 2>/dev/null;
BIN=$(command -v $1 2>/dev/null)
res=$?
BIN=$(basename $BIN 2>/dev/null)
if [[ $BIN == $1 ]]; then
res=1
fi
echo $(($res ^ 1))
}
@ -494,4 +501,4 @@ then
unset LD_HAS_peco
unset LD_HAS_md5sum
unset LD_HAS_tree
fi
fi