fix: remove uneccessary ()

This commit is contained in:
max_richter 2020-11-07 16:44:21 +01:00
parent ced3e34b4b
commit c5f18a3c4a
2 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
function isInstalled(){ function isInstalled {
if [ "$(which $1)" != "" ]; then if [ "$(which $1)" != "" ]; then
return 0; return 0;
fi fi

View File

@ -1,14 +1,14 @@
#!/bin/bash #!/bin/bash
cd "$(dirname "$0")" cd "$(dirname "$0")"
function isInstalled(){ function isInstalled {
if [ "$(which $1)" != "" ]; then if [ "$(which $1)" != "" ]; then
return 0; return 0;
fi fi
return 1; return 1;
} }
function installOptional(){ function installOptional {
echo "install optional '$*'" echo "install optional '$*'"
# Check if any of the listed programs are installed # Check if any of the listed programs are installed