Thuban
2018-02-26 72c7d8214e6a7b4cfc9068554bed33151eb7b7c3
commit | author | age
9f3540 1 #!/bin/sh
Y 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