diff options
| author | Marc Nause <marc.nause@audioattack.de> | 2015-02-23 22:54:49 +0100 |
|---|---|---|
| committer | Marc Nause <marc.nause@audioattack.de> | 2015-02-23 22:54:49 +0100 |
| commit | 53e4ae65d0bca0ff8fb6b2a766742de87d1691d6 (patch) | |
| tree | 17b1eef9b2affe32d235b6636df32b7f8d2ed4fe /startYACY.sh | |
| parent | ba276d3e64f95cce4c44dafcc3fe5d3352057484 (diff) | |
Changes to improve compatibility with OpenBSD. (see
http://forum.yacy-websuche.de/viewtopic.php?f=8&t=5503)
Diffstat (limited to 'startYACY.sh')
| -rwxr-xr-x | startYACY.sh | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/startYACY.sh b/startYACY.sh index ec0bfca43..f9af34de7 100755 --- a/startYACY.sh +++ b/startYACY.sh @@ -45,8 +45,20 @@ USAGE #startup YaCy cd "`dirname $0`" -options="`getopt -n YaCy -o h,d,l,p,t,g -l help,debug,logging,print-out,tail-log,gui -- $@`" +if [ $OS = "OpenBSD" ] +then + if [ $(echo $@ | grep -o "\-\-" | wc -l) -ne 0 ] + then + echo "WARNING: Unfortunately this script does not support long options in $OS." + fi + + options="`getopt -n YaCy -o h,d,l,p,t,g -- $@`" +else + options="`getopt -n YaCy -o h,d,l,p,t,g -l help,debug,logging,print-out,tail-log,gui -- $@`" +fi + if [ $? -ne 0 ];then + exit 1; fi @@ -87,7 +99,7 @@ for option in $options;do -t|--tail-log) TAILLOG=1 ;; - -gui) + -g|--gui) GUI=1 isparameter=1 ;; |
