[chk_deployed_ids] Fixed syntax error

This commit is contained in:
ayakael 2019-04-12 22:03:40 -04:00
parent d146a619b6
commit d2c4b8443b
Signed by untrusted user who does not match committer: forge
GPG key ID: D62A472A4AA7D541

View file

@ -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
}