commit | author | age | ||
3a37e6 | 1 | #!/bin/sh |
40cb2e | 2 | # script to launch vilain with the latest python3 version avaiable |
T | 3 | |
3a37e6 | 4 | PYTHONVERSION=$(ls -l /usr/local/bin/python3.* |grep -Eo "3\.[0-9]" |tail -n1) |
T | 5 | PYTHON="/usr/local/bin/python$PYTHONVERSION" |
6 | if [ -x $PYTHON ]; then | |
40cb2e | 7 | $PYTHON /usr/local/sbin/vilain.py >/dev/null 2>&1 & |
3a37e6 | 8 | else |
T | 9 | echo "Error : no python3 executable found" |
10 | fi | |
11 | exit |