aboutsummaryrefslogtreecommitdiff
path: root/resources/scripts
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2015-06-07 07:34:38 +0100
committerFrancis Rowe <info@gluglug.org.uk>2015-06-07 07:34:38 +0100
commitbd68a8334607ac59f362f9c960375475fbd9ea55 (patch)
tree880e3cdead8b82234c68be249fc33d54f8f944c2 /resources/scripts
parentcbe8c559cdb275200a68e1075094b455cfae6155 (diff)
downloadlibrebootfr-bd68a8334607ac59f362f9c960375475fbd9ea55.tar.gz
librebootfr-bd68a8334607ac59f362f9c960375475fbd9ea55.zip
build/release/roms: exit violently if no bin/ directory exists
Diffstat (limited to 'resources/scripts')
-rwxr-xr-xresources/scripts/helpers/build/release/roms5
1 files changed, 5 insertions, 0 deletions
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/