#!/bin/sh if [ ! -L /usr/bin/python ] ; then maxver=$(ls /usr/lib64 | grep "python3.[0-9]*" | sort | tail -n 1) pydefault ${maxver:6} fi