From 1b8513420c3e83fe04a5c83e3175160608758aba Mon Sep 17 00:00:00 2001 From: silvernode Date: Wed, 9 Mar 2016 02:41:12 -0700 Subject: [PATCH] Added script to remove a bad steam library for rolling release distros --- Bash Scripts/fix_steam.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 Bash Scripts/fix_steam.sh diff --git a/Bash Scripts/fix_steam.sh b/Bash Scripts/fix_steam.sh new file mode 100755 index 0000000..c6e16d9 --- /dev/null +++ b/Bash Scripts/fix_steam.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +BADLIB="/home/$USER/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/libstdc++.so.6" + +BADLIB2="/home/mollusk/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/libstdc++.so.6" + +if [ ! -f ${BADLIB} ];then + echo "Everything should be ok, the bad library file is gone" + +elif [ -f ${BADLIB} ];then + echo + echo "The bad library file exists" + echo -n "Would you like to remove it?(y/n): " + read answer + + if [ "${answer}" = "n" ];then + exit 0; + elif [ "${answer}" = "y" ];then + rm "${BADLIB}" + else + echo "${answer}: Invalid syntax: Please answer y oe n!" + exit 0; + fi +fi +