[chk_deployed_ids] Now does not output duplicate tabs in .dam.db
This commit is contained in:
parent
5c4632ba67
commit
20cdce0e9d
1 changed files with 1 additions and 1 deletions
|
@ -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\t${IMAGEID}\t${TRACKID}\t${flac}" >> ${DB_FILE}
|
echo -e "true${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}
|
||||||
|
|
Loading…
Reference in a new issue