Open IceDBorn opened 2 years ago
Note that the list is now reversed (shows newest first). So in this script you will need to change "tail" for "head".
I don't know why, but "protonup -l" keeps changing order from time to time.
So I changed my removal script to:
INSTALLED_PROTON=$(protonup -l | sort);
if [ $(echo ${INSTALLED_PROTON} | wc -l) != "1" ]; then
OLD_VERSION=$(echo ${INSTALLED_PROTON} |head -n 1 |cut -d " " -f1)
echo "Removing ${OLD_VERSION}"
protonup -r "${OLD_VERSION}"
fi;
it's not necessary to delete it through protonup, just deleting the folder will do. would be nice to integrate this into protonup tho.
I'm not aware of a native way of removing all versions of proton GE, except the latest one and as a result I made a bash script that solves this issue.