Skip to content
Snippets Groups Projects
Commit 0d5cc451 authored by Guillaume Valadon's avatar Guillaume Valadon
Browse files

Don't use /bin/bash

parent 56d488b4
No related branches found
No related tags found
No related merge requests found
#! /bin/bash #! /bin/sh
DIR=$(dirname $0)/.. DIR=$(dirname $0)/..
if python --version 2>&1 | grep -q '^Python 2'; then if python --version 2>&1 | grep -q '^Python 2'; then
PYTHON=python PYTHON=python
else else
PYTHON=python2 PYTHON=python2
fi fi
if [ "$*" == "" ] if [ ! -n "$*" ]
then 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 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 else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment