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