commit 8365867b77143c5ec34c367422083daa5f5d5e8c
parent 9c2c69bc0658018b39b7f67971cade3f9df4fe67
Author: Kyle Milz <kyle@getaddrinfo.net>
Date: Sat, 4 Jun 2016 14:35:28 -0600
pkg: error out if os dir doesn't exist
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/pkg/pkg.sh b/pkg/pkg.sh
@@ -4,4 +4,9 @@
# for building packages on all platforms.
uname_lc=`uname | tr '[:upper:]' '[:lower:]'`
+if [ ! -d $uname_lc ]; then
+ echo Error: Need packaging directory for "$uname_lc"
+ exit 1;
+fi
+
(cd $uname_lc && sh pkg.sh)