aboutsummaryrefslogtreecommitdiff
path: root/exec
diff options
context:
space:
mode:
authorBert Münnich <ber.t@posteo.de>2016-10-17 20:29:11 +0200
committerBert Münnich <ber.t@posteo.de>2016-10-17 20:29:11 +0200
commit891f389f0e228759b05dadec9dafdea5dc772f70 (patch)
treef10551c8faad66ba56a786b3fe1203b9620cce48 /exec
parent86dc6860f9def64ad554a7c69eeae28203661e2c (diff)
Silence error messages in image-info script
Diffstat (limited to 'exec')
-rw-r--r--exec/image-info2
1 files changed, 2 insertions, 0 deletions
diff --git a/exec/image-info b/exec/image-info
index 8e1b805..1a808f7 100644
--- a/exec/image-info
+++ b/exec/image-info
@@ -10,6 +10,8 @@
s=" | " # field separator
+exec 2>/dev/null
+
filename=$(basename -- "$1")
filesize=$(du -Hh -- "$1" | cut -f 1)