From d666859b83165bf58a4bdc40b68ff8e9029c4bc7 Mon Sep 17 00:00:00 2001 From: Jephte Clain Date: Wed, 18 Mar 2020 05:25:05 +0400 Subject: [PATCH] dk: supprimer avec image:tag si possible --- dk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dk b/dk index b634627..bd7ce0e 100755 --- a/dk +++ b/dk @@ -1916,7 +1916,7 @@ NR == 1 { print; next } shift fi all="$("${lscmd[@]}" | "${filtercmd[@]}")" - setx -a images awk 'NR == 1 { next } { print $3 }' <<<"$all" + setx -a images awk 'NR == 1 { next } { if ($1 == "" || $2 == "") { print $3 } else { print $1 ":" $2 } }' <<<"$all" if [ ${#images[*]} -gt 0 ]; then echo "$all" ask_yesno "Etes-vous sûr de vouloir supprimer ces images?" || die