diff options
| author | allo <allo@6c8d7289-2bf4-0310-a012-ef5d649a1542> | 2006-10-02 15:29:52 +0000 |
|---|---|---|
| committer | allo <allo@6c8d7289-2bf4-0310-a012-ef5d649a1542> | 2006-10-02 15:29:52 +0000 |
| commit | f0ed7f43c48c5785eb372c184e57bb0eb3041555 (patch) | |
| tree | cc83b65075e8cea4dcbfb7abe3d3c4b0cef1d08b /startYACY.sh | |
| parent | bcf2b800b4d8939ef673e0284407e4d292cd5cb0 (diff) | |
more sh (i.e. /bin/dash instead of /bin/bash as sh) compatibility
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2695 6c8d7289-2bf4-0310-a012-ef5d649a1542
Diffstat (limited to 'startYACY.sh')
| -rwxr-xr-x | startYACY.sh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/startYACY.sh b/startYACY.sh index 9862876d5..9b5e86d27 100755 --- a/startYACY.sh +++ b/startYACY.sh @@ -1,5 +1,5 @@ #!/bin/sh -if [ $UID -eq 0 ] +if [ `id -u` -eq 0 ] then echo echo "For security reasons you should not run this script as root!" @@ -43,23 +43,23 @@ DEBUG=0 PRINTONLY=0 for option in $options;do if [ $isparameter -ne 1 ];then #option - if [ x$option == "x-l" ];then + if [ x$option = "x-l" ];then LOGGING=1 if [ $DEBUG -eq 1 ];then echo "can not combine -l and -d" exit 1; fi - elif [ x$option == "x-d" ];then + elif [ x$option = "x-d" ];then DEBUG=1 if [ $LOGGING -eq 1 ];then echo "can not combine -l and -d" exit 1; fi - elif [ x$option == "x-p" ];then + elif [ x$option = "x-p" ];then PRINTONLY=1 fi #which option else #parameter - if [ x$option == "--" ];then #option / parameter seperator + if [ x$option = "--" ];then #option / parameter seperator isparameter=1; continue else @@ -83,7 +83,7 @@ fi # generating the proper classpath CLASSPATH="" #prefix=$(dirname $0); -#if [ x$prefix == "x." ];then +#if [ x$prefix = "x." ];then # prefix=""; #else # prefix="$prefix/" |
