From bd68a8334607ac59f362f9c960375475fbd9ea55 Mon Sep 17 00:00:00 2001 From: Francis Rowe Date: Sun, 07 Jun 2015 02:34:38 -0400 Subject: build/release/roms: exit violently if no bin/ directory exists --- (limited to 'resources/scripts') diff --git a/resources/scripts/helpers/build/release/roms b/resources/scripts/helpers/build/release/roms index b217d64..b89b5f8 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 v0.9.1