Browse Source

fixes unary operator expected

pull/1255/head
Daniel Gibbs 8 years ago
parent
commit
213ab5ee08
  1. 2
      lgsm/functions/core_dl.sh

2
lgsm/functions/core_dl.sh

@ -117,7 +117,7 @@ fn_fetch_file(){
# trap to remove part downloaded files
trap fn_fetch_trap INT
# if larger file shows progress bar
if [ ${filename##*.} == "bz2" ]||[ ${filename##*.} == "gz" ]||[ ${filename##*.} == "zip" ]||[ ${filename##*.} == "jar" ]; then
if [ "${filename##*.}" == "bz2" ]||[ "${filename##*.}" == "gz" ]||[ "${filename##*.}" == "zip" ]||[ "${filename##*.}" == "jar" ]; then
echo -ne "downloading ${filename}..."
sleep 1
curlcmd=$(${curlcmd} --progress-bar --fail -L -o "${filedir}/${filename}" "${fileurl}")

Loading…
Cancel
Save