From: Elliott Mitchell Date: Fri, 17 Jul 2020 06:37:42 +0000 (-0700) Subject: d/shuffle-binaries: Make error detection/message overt X-Git-Tag: archive/raspbian/4.14.1+11-gb0b734a8b3-1+rpi1^2~77 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e8a676fe6179e3d0de36c68943aa9bafe6a03900;p=xen.git d/shuffle-binaries: Make error detection/message overt The reason for the `ls` at the end is pretty straightforward if you think about it, mainly confirming the shuffle step did something. Yet that is a bit non-obvious, and the error message produced on failure is poor ("No such file or directory" simply means the script failed somewhere?). Add an overt error message. Signed-off-by: Elliott Mitchell Acked-by: Hans van Kranenburg --- diff --git a/debian/shuffle-binaries b/debian/shuffle-binaries index cff6de5428..31aa01e2bd 100755 --- a/debian/shuffle-binaries +++ b/debian/shuffle-binaries @@ -47,4 +47,7 @@ for binary in `find $t/usr/{bin,sbin} -type f`; do ) done -ls debian/shuffle-binaries.stamp +if [ ! -e "$0.stamp" ]; then + echo "Failed to shuffle binaries!" 1>&2 + exit 1 +fi