mirror of https://github.com/secdev/scapy.git
python --version may output to stderr (fixes #101)
This commit is contained in:
parent
66064db6bd
commit
37cc56cfa5
|
@ -1,6 +1,6 @@
|
|||
#! /bin/sh
|
||||
DIR=$(dirname $0)
|
||||
if python --version | grep -q '^Python 2'; then
|
||||
if python --version 2>&1 | grep -q '^Python 2'; then
|
||||
PYTHON=python
|
||||
else
|
||||
PYTHON=python2
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#! /bin/bash
|
||||
DIR=$(dirname $0)/..
|
||||
if python --version | grep -q '^Python 2'; then
|
||||
if python --version 2>&1 | grep -q '^Python 2'; then
|
||||
PYTHON=python
|
||||
else
|
||||
PYTHON=python2
|
||||
|
|
Loading…
Reference in New Issue