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:
parent
e3a2efdb43
commit
33ca0e1422
11 changed files with 30 additions and 16 deletions
11
daisy.source
11
daisy.source
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue