fix: remove uneccessary ()
This commit is contained in:
parent
ced3e34b4b
commit
c5f18a3c4a
@ -1,4 +1,4 @@
|
|||||||
function isInstalled(){
|
function isInstalled {
|
||||||
if [ "$(which $1)" != "" ]; then
|
if [ "$(which $1)" != "" ]; then
|
||||||
return 0;
|
return 0;
|
||||||
fi
|
fi
|
||||||
|
4
setup.sh
4
setup.sh
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user