Skip to content

Commit

Permalink
remove unnecessary bash dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
yamt committed Apr 4, 2013
1 parent ad425f4 commit e5f9169
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions pox.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash -
#!/bin/sh -

# Copyright 2011-2012 James McCauley
#
Expand Down Expand Up @@ -26,7 +26,7 @@
''''echo -n
export OPT="-u -O"
export FLG=""
if [[ "$(basename $0)" == "debug-pox.py" ]]; then
if [ "$(basename $0)" = "debug-pox.py" ]; then
export OPT=""
export FLG="--debug"
fi
Expand All @@ -35,7 +35,7 @@
exec pypy/bin/pypy $OPT "$0" $FLG "$@"
fi

if [ "$(type -P python2.7)" != "" ]; then
if type python2.7 > /dev/null; then
exec python2.7 $OPT "$0" $FLG "$@"
fi
exec python $OPT "$0" $FLG "$@"
Expand Down
6 changes: 3 additions & 3 deletions pox/boot.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash -
#!/bin/sh -

# Copyright 2011-2012 James McCauley
#
Expand Down Expand Up @@ -28,7 +28,7 @@
''''echo -n
export OPT="-u -O"
export FLG=""
if [[ "$(basename $0)" == "debug-pox.py" ]]; then
if [ "$(basename $0)" = "debug-pox.py" ]; then
export OPT=""
export FLG="--debug"
fi
Expand All @@ -37,7 +37,7 @@
exec pypy/bin/pypy $OPT "$0" $FLG "$@"
fi

if [ "$(type -P python2.7)" != "" ]; then
if type python2.7 > /dev/null; then
exec python2.7 $OPT "$0" $FLG "$@"
fi
exec python $OPT "$0" $FLG "$@"
Expand Down

0 comments on commit e5f9169

Please sign in to comment.