From f0ed7f43c48c5785eb372c184e57bb0eb3041555 Mon Sep 17 00:00:00 2001 From: allo Date: Mon, 2 Oct 2006 15:29:52 +0000 Subject: [PATCH] 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 --- startYACY.sh | 12 ++++++------ 1 file 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/"