|
@@ -69,7 +69,7 @@ fn_clear_old_fastdl(){
|
|
|
echo -en "clearing existing FastDL directory ${fastdldir}..."
|
|
echo -en "clearing existing FastDL directory ${fastdldir}..."
|
|
|
rm -R "${fastdldir:?}"
|
|
rm -R "${fastdldir:?}"
|
|
|
exitcode=$?
|
|
exitcode=$?
|
|
|
- if [ "${exitcode}" -ne 0 ]; then
|
|
|
|
|
|
|
+ if [ ${exitcode} -ne 0 ]; then
|
|
|
fn_print_fail_eol_nl
|
|
fn_print_fail_eol_nl
|
|
|
fn_script_log_fatal "Clearing existing FastDL directory ${fastdldir}"
|
|
fn_script_log_fatal "Clearing existing FastDL directory ${fastdldir}"
|
|
|
core_exit.sh
|
|
core_exit.sh
|
|
@@ -337,7 +337,7 @@ fn_fastdl_source(){
|
|
|
fi
|
|
fi
|
|
|
cp "${fastdlfile}" "${fastdldir}/${directory}"
|
|
cp "${fastdlfile}" "${fastdldir}/${directory}"
|
|
|
exitcode=$?
|
|
exitcode=$?
|
|
|
- if [ "${exitcode}" -ne 0 ]; then
|
|
|
|
|
|
|
+ if [ ${exitcode} -ne 0 ]; then
|
|
|
fn_print_fail_eol_nl
|
|
fn_print_fail_eol_nl
|
|
|
fn_script_log_fatal "Copying ${fastdlfile} > ${fastdldir}/${directory}"
|
|
fn_script_log_fatal "Copying ${fastdlfile} > ${fastdldir}/${directory}"
|
|
|
core_exit.sh
|
|
core_exit.sh
|
|
@@ -373,7 +373,7 @@ fn_fastdl_gmod_dl_enforcer(){
|
|
|
echo -en "removing existing download enforcer: ${luafastdlfile}..."
|
|
echo -en "removing existing download enforcer: ${luafastdlfile}..."
|
|
|
rm "${luafastdlfullpath:?}"
|
|
rm "${luafastdlfullpath:?}"
|
|
|
exitcode=$?
|
|
exitcode=$?
|
|
|
- if [ "${exitcode}" -ne 0 ]; then
|
|
|
|
|
|
|
+ if [ ${exitcode} -ne 0 ]; then
|
|
|
fn_print_fail_eol_nl
|
|
fn_print_fail_eol_nl
|
|
|
fn_script_log_fatal "Removing existing download enforcer ${luafastdlfullpath}"
|
|
fn_script_log_fatal "Removing existing download enforcer ${luafastdlfullpath}"
|
|
|
core_exit.sh
|
|
core_exit.sh
|
|
@@ -391,7 +391,7 @@ fn_fastdl_gmod_dl_enforcer(){
|
|
|
echo "resource.AddFile( \"${line}\" )" >> "${luafastdlfullpath}"
|
|
echo "resource.AddFile( \"${line}\" )" >> "${luafastdlfullpath}"
|
|
|
done < <(find "${fastdldir:?}" \( -type f ! -name "*.bz2" \) -printf '%P\n')
|
|
done < <(find "${fastdldir:?}" \( -type f ! -name "*.bz2" \) -printf '%P\n')
|
|
|
exitcode=$?
|
|
exitcode=$?
|
|
|
- if [ "${exitcode}" -ne 0 ]; then
|
|
|
|
|
|
|
+ if [ ${exitcode} -ne 0 ]; then
|
|
|
fn_print_fail_eol_nl
|
|
fn_print_fail_eol_nl
|
|
|
fn_script_log_fatal "Creating new download enforcer ${luafastdlfullpath}"
|
|
fn_script_log_fatal "Creating new download enforcer ${luafastdlfullpath}"
|
|
|
core_exit.sh
|
|
core_exit.sh
|
|
@@ -408,7 +408,7 @@ fn_fastdl_bzip2(){
|
|
|
echo -en "\r\033[Kcompressing ${filetocompress}..."
|
|
echo -en "\r\033[Kcompressing ${filetocompress}..."
|
|
|
bzip2 -f "${filetocompress}"
|
|
bzip2 -f "${filetocompress}"
|
|
|
exitcode=$?
|
|
exitcode=$?
|
|
|
- if [ "${exitcode}" -ne 0 ]; then
|
|
|
|
|
|
|
+ if [ ${exitcode} -ne 0 ]; then
|
|
|
fn_print_fail_eol_nl
|
|
fn_print_fail_eol_nl
|
|
|
fn_script_log_fatal "Compressing ${filetocompress}"
|
|
fn_script_log_fatal "Compressing ${filetocompress}"
|
|
|
core_exit.sh
|
|
core_exit.sh
|