Revert "[chk_deployed_ids] Now does not output duplicate tabs in .dam.db"

This reverts commit 20cdce0e9d.
This commit is contained in:
ayakael 2018-12-29 16:59:08 -05:00
parent 435d8c0319
commit a786821d8e
No known key found for this signature in database
GPG key ID: 575626A4AE5F4026

View file

@ -34,7 +34,7 @@ chk_deployed_ids() {
if [[ -z "$(awk -v imageid=${IMAGEID} -v trackid=${TRACKID} 'BEGIN{FS="\t"}{if($2==imageid && $3==trackid){print $0}}' ${DB_FILE})" ]]; then if [[ -z "$(awk -v imageid=${IMAGEID} -v trackid=${TRACKID} 'BEGIN{FS="\t"}{if($2==imageid && $3==trackid){print $0}}' ${DB_FILE})" ]]; then
local ERR=true local ERR=true
echo "Fixing accounting for ${flac}" > ${STDERR} echo "Fixing accounting for ${flac}" > ${STDERR}
echo -e "true${IMAGEID}\t${TRACKID}\t${flac}" >> ${DB_FILE} echo -e "true\t${IMAGEID}\t${TRACKID}\t${flac}" >> ${DB_FILE}
elif [[ "$(awk -v imageid=${IMAGEID} -v trackid=${TRACKID} 'BEGIN{FS="\t"}{if($2==imageid && $3==trackid){print $4}}' ${DB_FILE})" != "${flac}" ]]; then elif [[ "$(awk -v imageid=${IMAGEID} -v trackid=${TRACKID} 'BEGIN{FS="\t"}{if($2==imageid && $3==trackid){print $4}}' ${DB_FILE})" != "${flac}" ]]; then
local ERR=true local ERR=true
echo "Fixing path for ${flac}" > ${STDERR} echo "Fixing path for ${flac}" > ${STDERR}