Commit db0ff1b2 by Eric Coissac

Patch a bug when igetwithmd5 is called without target argument

parent a7ec9ae4
Pipeline #13 skipped
......@@ -135,7 +135,7 @@ function igetwithmd5() {
if [[ ! -z "${1}" ]]; then
local TARGET=$1
else
local TARGET=""
local TARGET=$(basename $1)
fi
if ! iresourceexists "$SOURCE" ; then
......@@ -153,9 +153,11 @@ function igetwithmd5() {
TRIAL=$((TRIAL+1))
"${LECABASHLIB_IGET}" "${SOURCE}" "${TARGET}"
HAS_MD5=0
"${LECABASHLIB_IGET}" "${SOURCE}.md5" "${TARGET}.md5" && HAS_MD5=1
if (( "${HAS_MD5}"=="1" ))
if (( HAS_MD5 == 1 ))
then
LMD5=$(${LECABASHLIB_MD5SUM} ${TARGET} | awk '{print $1}')
IMD5=$(cat ${TARGET}.md5 | awk '{print $1}')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment