Browse Source

Added error checking

pull/549/head
Daniel Gibbs 9 years ago
parent
commit
c0aa4d988b
  1. 8
      functions/fn_install_steamfix

8
functions/fn_install_steamfix

@ -2,7 +2,7 @@
# LGSM fn_install_steamfix function # LGSM fn_install_steamfix function
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://gameservermanagers.com # Website: http://gameservermanagers.com
# Version: 210115 # Version: 091215
fn_steamclientfix(){ fn_steamclientfix(){
echo "" echo ""
@ -12,6 +12,9 @@ sleep 1
mkdir -pv "${HOME}/.steam" mkdir -pv "${HOME}/.steam"
mkdir -pv "${HOME}/.steam/sdk32" mkdir -pv "${HOME}/.steam/sdk32"
cp -v "${rootdir}/steamcmd/linux32/steamclient.so" "${HOME}/.steam/sdk32/steamclient.so" cp -v "${rootdir}/steamcmd/linux32/steamclient.so" "${HOME}/.steam/sdk32/steamclient.so"
if [[ $? != 0 ]]; then
fn_printfailurenl "Cannot start apply steamclient.so fix."
fi
sleep 1 sleep 1
} }
@ -29,6 +32,9 @@ elif [ "${gamename}" == "Serious Sam 3: BFE" ]; then
mkdir "${HOME}/.steam/bin32" mkdir "${HOME}/.steam/bin32"
cp -v "${filesdir}/Bin/libsteam.so" "${HOME}/.steam/bin32/libsteam.so" cp -v "${filesdir}/Bin/libsteam.so" "${HOME}/.steam/bin32/libsteam.so"
fi fi
if [[ $? != 0 ]]; then
fn_printfailurenl "Cannot start apply libsteam.so fix."
fi
sleep 1 sleep 1
} }

Loading…
Cancel
Save