Browse Source

Altered how source is run

pull/743/head
Daniel Gibbs 9 years ago
parent
commit
f732744910
  1. 11
      functions/core_dl.sh

11
functions/core_dl.sh

@ -122,15 +122,18 @@ if [ ! -f "${filedir}/${filename}" ]; then
echo -e "" echo -e ""
exit 1 exit 1
fi fi
fn_dl_md5
# make file executable if run is set # make file executable if run is set
if [ "${run}" == "run" ]; then if [ "${run}" == "run" ]; then
chmod +x "${filedir}/${filename}" chmod +x "${filedir}/${filename}"
fi fi
fi fi
# run file if run is set
if [ "${run}" == "run" ]; then if [ -f "${filedir}/${filename}" ]; then
source "${filedir}/${filename}" fn_dl_md5
# run file if run is set
if [ "${run}" == "run" ]; then
source "${filedir}/${filename}"
fi
fi fi
} }

Loading…
Cancel
Save