Browse Source

minor tidy

pull/1331/head
Daniel Gibbs 8 years ago
parent
commit
a8ae8a43af
  1. 8
      lgsm/functions/command_fastdl.sh

8
lgsm/functions/command_fastdl.sh

@ -63,8 +63,8 @@ if [ "${gamename}" == "Garry's Mod" ]; then
fi fi
fn_clear_old_fastdl(){ fn_clear_old_fastdl(){
# Clearing old FastDL # Clearing old FastDL
if [ -d "${fastdldir}" ];then if [ -d "${fastdldir}" ]; then
echo -en "clearing existing FastDL directory ${fastdldir}..." echo -en "clearing existing FastDL directory ${fastdldir}..."
rm -R "${fastdldir:?}"/* rm -R "${fastdldir:?}"/*
exitcode=$? exitcode=$?
@ -112,7 +112,7 @@ fn_clear_old_fastdl_alt(){
fn_fastdl_dirs(){ fn_fastdl_dirs(){
# Check and create directories # Check and create directories
if [ ! -d "${webdir}" ];then if [ ! -d "${webdir}" ]; then
echo -en "creating web directory ${webdir}..." echo -en "creating web directory ${webdir}..."
mkdir -p "${webdir}" mkdir -p "${webdir}"
exitcode=$? exitcode=$?
@ -126,7 +126,7 @@ fn_fastdl_dirs(){
fi fi
sleep 0.5 sleep 0.5
fi fi
if [ ! -d "${fastdldir}" ];then if [ ! -d "${fastdldir}" ]; then
echo -en "creating fastdl directory ${fastdldir}..." echo -en "creating fastdl directory ${fastdldir}..."
mkdir -p "${fastdldir}" mkdir -p "${fastdldir}"
exitcode=$? exitcode=$?

Loading…
Cancel
Save