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