summaryrefslogtreecommitdiff
path: root/xibuild
diff options
context:
space:
mode:
Diffstat (limited to 'xibuild')
-rwxr-xr-xxibuild5
1 files changed, 5 insertions, 0 deletions
diff --git a/xibuild b/xibuild
index d16ad41..62f390c 100755
--- a/xibuild
+++ b/xibuild
@@ -134,6 +134,11 @@ xibuild () {
# go back to root, make things easier
cd $XI_ROOT
+ if [ -z "$(ls -A $PKG_DEST)" ]; then
+ printf "$FAIL!!!Package is empty!!!$RESET\n"
+ return 1;
+ else
+
printf "$INFO\tarchiving package...";
tar -C $PKG_DEST -czf $PKG_FILE ./ >> $LOGFILE 2>&1 && printf "$PASS archived to $(du -sh $PKG_FILE | awk '{ print $1 }')\n" || return 1;