Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[enhance] spawn.sh: use seq instead of gseq on Lion
  • Loading branch information
Aqua-Ye committed Feb 7, 2012
1 parent e5f6f7b commit 17c3909
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion dissemination/spawn.sh
Expand Up @@ -23,6 +23,7 @@ set -e

# Author: Louis Gesbert
# Author: Hugo Venturini
# Author: Frederic Ye (minor maintenance)

DEBUG=${DEBUG:-0}

Expand Down Expand Up @@ -73,6 +74,7 @@ if ! HAPROXY_BIN=$(which haproxy); then
fi

OS=$(uname -s)
OS_REL=$(uname -r | tr -d '.')
TMP_DIR=""
SEQ=""

Expand All @@ -89,7 +91,12 @@ case $OS in
else
MDNS="$MDNS -G v4"
fi
SEQ="gseq"
if [ $OS_REL -gt $(echo "11.0.0" | tr -d '.') ]; then
SEQ="seq"
else
SEQ="gseq"
fi
echo_debug "using $SEQ"
;;
Linux|*)
# no no no ... it does NOT mean the same thing !
Expand Down

0 comments on commit 17c3909

Please sign in to comment.