From bd68a8334607ac59f362f9c960375475fbd9ea55 Mon Sep 17 00:00:00 2001 From: Francis Rowe Date: Sun, 7 Jun 2015 07:34:38 +0100 Subject: build/release/roms: exit violently if no bin/ directory exists --- resources/scripts/helpers/build/release/roms | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'resources/scripts') diff --git a/resources/scripts/helpers/build/release/roms b/resources/scripts/helpers/build/release/roms index b217d644..b89b5f8f 100755 --- a/resources/scripts/helpers/build/release/roms +++ b/resources/scripts/helpers/build/release/roms @@ -23,6 +23,11 @@ [ "x${DEBUG+set}" = 'xset' ] && set -v set -u -e +if [ ! -d bin/ ]; then + printf "No bin/ directory exists. (you haven't built any images)\n" + exit 1 +fi + printf 'Deleting old documentation release archives\n' rm -Rf release/rom/ -- cgit v1.2.3-70-g09d2