20 lines
479 B
Bash
Executable File
20 lines
479 B
Bash
Executable File
#!/bin/bash
|
|
|
|
echo "This script creates a symlink between Python and python3"
|
|
if [ -f /usr/bin/python ];
|
|
then echo "
|
|
The link is already there.
|
|
Running this script will not do anything.
|
|
Aborting...
|
|
Press 'Enter' to close this window" && read -r && exit
|
|
else pyerror=n
|
|
fi
|
|
|
|
if [ $pyerror = n ];
|
|
then sudo ln -s /usr/bin/python3 /usr/bin/python && echo "1" > ./dbpyer.txt
|
|
else echo "0" > ./dbpyer.txt
|
|
fi
|
|
echo "Link created!
|
|
Press 'Enter' to close this window..."
|
|
read -r
|