Don't use /bin/bash

This commit is contained in:
Guillaume Valadon 2016-03-30 12:27:32 +02:00
parent 56d488b4e6
commit 0d5cc45176
1 changed files with 2 additions and 2 deletions

View File

@ -1,11 +1,11 @@
#! /bin/bash
#! /bin/sh
DIR=$(dirname $0)/..
if python --version 2>&1 | grep -q '^Python 2'; then
PYTHON=python
else
PYTHON=python2
fi
if [ "$*" == "" ]
if [ ! -n "$*" ]
then
PYTHONPATH=$DIR exec $PYTHON ${DIR}/scapy/tools/UTscapy.py -t regression.uts -f html -l -o /tmp/scapy_regression_test_$(date +%Y%m%d-%H%M%S).html
else