diff --git a/Makefile b/Makefile index 610e146..164c353 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ name = backbit -root = "-o root -g root" +root = -o root -g root all: echo "Program is compiled, run 'make install'" diff --git a/src/backbit b/src/backbit index 338b08b..ef5ecde 100755 --- a/src/backbit +++ b/src/backbit @@ -1,9 +1,9 @@ #!/bin/bash -if [ -z $1 -o ! -d $1 ] +confDir=/etc/backbit + +if [ ! -z $1 -a -d $1 ] then - confDir=/etc/backbit -else confDir=$1 fi