dk: supprimer avec image:tag si possible

This commit is contained in:
Jephté Clain 2020-03-18 05:25:05 +04:00
parent 4ee346b521
commit d666859b83
1 changed files with 1 additions and 1 deletions

2
dk
View File

@ -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 == "<none>" || $2 == "<none>") { 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