[cmd_exclude] Fixed UI bug with "OK output

This commit is contained in:
ayakael 2018-05-15 23:47:55 -07:00
parent d4200094cc
commit 7acf7f5d99
No known key found for this signature in database
GPG key ID: 575626A4AE5F4026

View file

@ -27,7 +27,7 @@ cmd_exclude() {
_msg EXEC "Excluding all tracks that match the following condition: ${condition}" _msg EXEC "Excluding all tracks that match the following condition: ${condition}"
local MATCHES=$(db_set ${GIT_DIR} ${DB_FILE} false "${condition}" 2>${STDERR} | wc -l ) local MATCHES=$(db_set ${GIT_DIR} ${DB_FILE} false "${condition}" 2>${STDERR} | wc -l )
_msg ECHO "${MATCHES} matches" _msg ECHO "${MATCHES} matches"
[[ $? -ne 0 ]] && { _msg WARN 2; } || { _msg OK 2; } [[ $? -ne 0 ]] && { _msg WARN 1; } || { _msg OK 1; }
done done
local imageidList=($(awk 'BEGIN{FS="\t"}{if($1=="true"){print $2}}' ${DB_FILE} | awk '!seen[$0]++')) local imageidList=($(awk 'BEGIN{FS="\t"}{if($1=="true"){print $2}}' ${DB_FILE} | awk '!seen[$0]++'))
local DU="$(print_imageid_du ${GIT_DIR} ${imageidList[@]})" local DU="$(print_imageid_du ${GIT_DIR} ${imageidList[@]})"