Yax
2017-09-06 b8b614309acd67eafa4aa4197426100aaff5af80
commit | author | age
3a37e6 1 #!/bin/sh
b8b614 2 # script to launch vilain with the latest python3 version available
40cb2e 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