summaryrefslogtreecommitdiffstats
path: root/resources/scripts/helpers
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2015-06-07 02:34:38 (EDT)
committer Francis Rowe <info@gluglug.org.uk>2015-06-07 02:34:38 (EDT)
commitbd68a8334607ac59f362f9c960375475fbd9ea55 (patch)
tree880e3cdead8b82234c68be249fc33d54f8f944c2 /resources/scripts/helpers
parentcbe8c559cdb275200a68e1075094b455cfae6155 (diff)
downloadlibreboot-bd68a8334607ac59f362f9c960375475fbd9ea55.zip
libreboot-bd68a8334607ac59f362f9c960375475fbd9ea55.tar.gz
libreboot-bd68a8334607ac59f362f9c960375475fbd9ea55.tar.bz2
build/release/roms: exit violently if no bin/ directory exists
Diffstat (limited to 'resources/scripts/helpers')
-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 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/