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