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 <ehem+debian@m5p.com>
Acked-by: Hans van Kranenburg <hans@knorrie.org>
)
done
-ls debian/shuffle-binaries.stamp
+if [ ! -e "$0.stamp" ]; then
+ echo "Failed to shuffle binaries!" 1>&2
+ exit 1
+fi