From c1d36090899b51ac33f830c472b70133587df565 Mon Sep 17 00:00:00 2001 From: ayakael Date: Thu, 29 Mar 2018 11:20:25 -0400 Subject: [PATCH] [chk_deployed_ids] Now outputs to database with tab delimiters rather that space --- src/chk_deployed_ids | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chk_deployed_ids b/src/chk_deployed_ids index e1a0b95..8f344ce 100644 --- a/src/chk_deployed_ids +++ b/src/chk_deployed_ids @@ -22,7 +22,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 _msg ECHO "Fixing accounting for ${flac}" - echo "true ${IMAGEID} ${TRACKID} ${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 _msg ECHO "Fixing path for ${flac}" awk -v imageid=${IMAGEID} -v trackid=${TRACKID} 'BEGIN{FS="\t"}{if($2==imageid && $3==trackid){$4=path}{print $0}}' ${DB_FILE} > ${DB_FILE}.tmp; mv ${DB_FILE}.tmp ${DB_FILE}