🢀 stagit :: 189a005


commit 189a00549a5df527046caccc6b831567b673d6b7
Author: acidvegas <acid.vegas@acid.vegas>
Date:   Mon Jun 24 02:29:40 2019 -0400

    Added missing exit codes

diff --git a/stagit b/stagit
index f704de3..65de5a9 100755
--- a/stagit
+++ b/stagit
@@ -72,8 +72,8 @@ generate_repository_index() {
 			"<tr id=\"navigation\"><td>&nbsp; Hash</td><td>Commit message</td><td>Author</td><td>Date</td></tr>" >> $WWW_DIR/$REPO_NAME.html
 }
 
-[ ! -d $REPO_DIR ] && echo "'$REPO_DIR' directory does not exist" && exit
-[ -z "$(find $REPO_DIR -name .git -type d -prune)" ] && echo "'$REPO_DIR' contains no repositories" && exit
+[ ! -d $REPO_DIR ] && echo "'$REPO_DIR' directory does not exist" && exit 1
+[ -z "$(find $REPO_DIR -name .git -type d -prune)" ] && echo "'$REPO_DIR' contains no repositories" && exit 1
 mkdir -p $WWW_DIR && rm -rf $WWW_DIR/*
 [ $SHOW_HTML_EX -eq 1 ] && EX=".html"
 [ ! -z $CNAME ] && echo $CNAME >> $WWW_DIR/CNAME