From d2c4b8443bef9ea247202e10c344e880e694b04c Mon Sep 17 00:00:00 2001 From: ayakael Date: Fri, 12 Apr 2019 22:03:40 -0400 Subject: [PATCH] [chk_deployed_ids] Fixed syntax error --- src/chk_deployed_ids | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/chk_deployed_ids b/src/chk_deployed_ids index ab64e2d..5dc0788 100644 --- a/src/chk_deployed_ids +++ b/src/chk_deployed_ids @@ -20,7 +20,7 @@ chk_deployed_ids() { local COUNT=0 for flac in ${flacList[@]}; do - local flac=$(sed 's|${TARGET}/||' <<< ${flac}) + local flac=$(sed "s|${TARGET}/||" <<< ${flac}) local COUNT=$(( ${COUNT} + 1 )) local ERR=false echo "[ ${COUNT} / ${#flacList[@]} ] Checking ${flac}" @@ -42,8 +42,8 @@ chk_deployed_ids() { echo "Fixing path for ${flac}" > ${STDERR} gawk -i inplace -v imageid=${IMAGEID} -v trackid=${TRACKID} 'BEGIN{FS="\t"}{if($2==imageid && $3==trackid){$4=path}{print $0}}' ${DB_FILE} fi - [[ "${ERR}" == "true" ]] && return 1 || return 0 done + [[ "${ERR}" == "true" ]] && return 1 || return 0 }