diff options
author | Francis Rowe <info@gluglug.org.uk> | 2015-06-07 07:34:38 +0100 |
---|---|---|
committer | Francis Rowe <info@gluglug.org.uk> | 2015-06-07 07:34:38 +0100 |
commit | bd68a8334607ac59f362f9c960375475fbd9ea55 (patch) | |
tree | 880e3cdead8b82234c68be249fc33d54f8f944c2 | |
parent | cbe8c559cdb275200a68e1075094b455cfae6155 (diff) | |
download | librebootfr-bd68a8334607ac59f362f9c960375475fbd9ea55.tar.gz librebootfr-bd68a8334607ac59f362f9c960375475fbd9ea55.zip |
build/release/roms: exit violently if no bin/ directory exists
-rwxr-xr-x | resources/scripts/helpers/build/release/roms | 5 |
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/ |