fix: remove uneccessary ()
This commit is contained in:
parent
ced3e34b4b
commit
c5f18a3c4a
@ -1,4 +1,4 @@
|
||||
function isInstalled(){
|
||||
function isInstalled {
|
||||
if [ "$(which $1)" != "" ]; then
|
||||
return 0;
|
||||
fi
|
||||
|
4
setup.sh
4
setup.sh
@ -1,14 +1,14 @@
|
||||
#!/bin/bash
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
function isInstalled(){
|
||||
function isInstalled {
|
||||
if [ "$(which $1)" != "" ]; then
|
||||
return 0;
|
||||
fi
|
||||
return 1;
|
||||
}
|
||||
|
||||
function installOptional(){
|
||||
function installOptional {
|
||||
echo "install optional '$*'"
|
||||
|
||||
# Check if any of the listed programs are installed
|
||||
|
Loading…
Reference in New Issue
Block a user