linux_steam_download_fix/steam_download_speed_fix.sh
2024-05-03 20:55:27 -05:00

34 lines
No EOL
912 B
Bash
Executable file

#!/bin/bash
config="steam_dev.cfg"
echo "Running Steam download fix"
echo "Checking for native install."
# Run check to see if native install exists
if [ -d "$HOME/.steam/steam/" ]
then
echo "Native Steam installation was detected. Do you want to continue?"
select yn in "Yes" "No"; do
case $yn in
Yes ) cp "$config" "$HOME/.steam/steam/"; break;;
No ) exit;;
esac
done
else
echo "Native Steam installation was not detected. Checking for Flatpak."
# Run check to see if Flatpak install exists
if [ -d "$HOME/.var/app/com.valvesoftware.Steam/.steam/steam/" ]
then
echo "Flatpak Steam install was detected. Do you want to continue with the fix?"
select yn in "Yes" "No"; do
case $yn in
Yes ) cp "$config" "$HOME/.var/app/com.valvesoftware.Steam/.steam/steam/"; break;;
No ) exit;;
esac
done
else
echo "No Steam installation was not detected"
fi
fi