Thuban
2019-04-27 2fa8c5b3a7c3f262df076b7245e8536f7b164af1
commit | author | age
54613d 1 #!/bin/sh
T 2 # script to launch vilainreport with the latest python3 version available
3
4 PYTHONVERSION=$(ls -l /usr/local/bin/python3.* |grep -Eo "3\.[0-9]" |tail -n1)
5 PYTHON="/usr/local/bin/python$PYTHONVERSION"
6 if [ -x $PYTHON ]; then
7     $PYTHON /usr/local/sbin/vilainreport.py
8 else
9     echo "Error : no python3 executable found"
10 fi
11 exit