Browse Source

updated mkdir and removed error checking

removed error checking and un needed
pull/575/head
Daniel Gibbs 9 years ago
parent
commit
614b09b58c
  1. 14
      functions/fn_install_steamfix

14
functions/fn_install_steamfix

@ -2,19 +2,15 @@
# LGSM fn_install_steamfix function
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
lgsm_version="061115"
lgsm_version="201215"
fn_steamclientfix(){
echo ""
echo "Applying steamclient.so fix"
echo "================================="
sleep 1
mkdir -pv "${HOME}/.steam"
mkdir -pv "${HOME}/.steam/sdk32"
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
}
@ -24,17 +20,13 @@ echo ""
echo "Applying libsteam.so fix"
echo "================================="
sleep 1
mkdir -pv "${HOME}/.steam"
mkdir -pv "${HOME}/.steam/sdk32"
if [ "${gamename}" == "Garry's Mod" ]; then
mkdir -pv "${HOME}/.steam/sdk32"
cp -v "${filesdir}/bin/libsteam.so" "${HOME}/.steam/sdk32/libsteam.so"
elif [ "${gamename}" == "Serious Sam 3: BFE" ]; then
mkdir "${HOME}/.steam/bin32"
mkdir -pv "${HOME}/.steam/bin32"
cp -v "${filesdir}/Bin/libsteam.so" "${HOME}/.steam/bin32/libsteam.so"
fi
if [[ $? != 0 ]]; then
fn_printfailurenl "Cannot start apply libsteam.so fix."
fi
sleep 1
}

Loading…
Cancel
Save