[chk_deployed_ids] Fixed syntax error
This commit is contained in:
parent
d146a619b6
commit
d2c4b8443b
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue