diff options
| author | Staff Silence <50462946+quietok@users.noreply.github.com> | 2020-01-17 18:36:04 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-17 18:36:04 +0000 |
| commit | 906ce33bed912fc9dc9b5aefcd05c5fb2e50a3d9 (patch) | |
| tree | e0358ef2628d92aa5d6a32855bc5ed719c4fec0b | |
| parent | 37827b6788e3adb1f78e27e8038a63852b1e2e94 (diff) | |
Start script run on FreeBSD and likely other BSDs
Fix to make start script run on FreeBSD that i used, likely applies to dragonfly, trueos and possibly netbsd- but unable to test.
| -rwxr-xr-x | startYACY.sh | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/startYACY.sh b/startYACY.sh index 157a42154..2df77a3ba 100755 --- a/startYACY.sh +++ b/startYACY.sh @@ -49,17 +49,18 @@ USAGE YACY_PARENT_DATA_PATH="`dirname $0`" cd "$YACY_PARENT_DATA_PATH" -if [ $OS = "OpenBSD" ] || [ $OS = "Darwin" ] -then +case "$OS" in + *"BSD"|"Darwin") if [ $(echo $@ | grep -o "\-\-" | wc -l) -ne 0 ] then echo "WARNING: Unfortunately this script does not support long options in $OS." fi options="`getopt hdlptsg: $*`" -else +case *) options="`getopt -u -n YaCy -o h,d,f,l,p,t,s,g -l help,debug,foreground,logging,print-out,tail-log,startup,gui -- $@`" -fi +;; +esac if [ $? -ne 0 ];then |
