|
@@ -56,13 +56,12 @@ if [ -z "${legacymode}" ]; then
|
|
|
echo -e " Backup: ${backupdir}/script/${selfname}-$(date +"%m_%d_%Y_%M").bak"
|
|
echo -e " Backup: ${backupdir}/script/${selfname}-$(date +"%m_%d_%Y_%M").bak"
|
|
|
fi
|
|
fi
|
|
|
echo -en " fetching ${selfname}...\c"
|
|
echo -en " fetching ${selfname}...\c"
|
|
|
- exitcode=$?
|
|
|
|
|
cp "${tmpdir}/linuxgsm.sh" "${rootdir}/${selfname}"
|
|
cp "${tmpdir}/linuxgsm.sh" "${rootdir}/${selfname}"
|
|
|
sed -i "s/shortname=\"core\"/shortname=\"${shortname}\"/g" "${rootdir}/${selfname}"
|
|
sed -i "s/shortname=\"core\"/shortname=\"${shortname}\"/g" "${rootdir}/${selfname}"
|
|
|
sed -i "s/gameservername=\"core\"/gameservername=\"${gameservername}\"/g" "${rootdir}/${selfname}"
|
|
sed -i "s/gameservername=\"core\"/gameservername=\"${gameservername}\"/g" "${rootdir}/${selfname}"
|
|
|
sed -i "s/gamename=\"core\"/gamename=\"${gamename}\"/g" "${rootdir}/${selfname}"
|
|
sed -i "s/gamename=\"core\"/gamename=\"${gamename}\"/g" "${rootdir}/${selfname}"
|
|
|
-
|
|
|
|
|
- if [ "${exitcode}" == "0" ]; then
|
|
|
|
|
|
|
+ exitcode=$?
|
|
|
|
|
+ if [ "${exitcode}" != "0" ]; then
|
|
|
fn_print_fail_eol_nl
|
|
fn_print_fail_eol_nl
|
|
|
core_exit.sh
|
|
core_exit.sh
|
|
|
else
|
|
else
|