From f11bfdf59da8a87bf4db7e79e87e921a40a25138 Mon Sep 17 00:00:00 2001
From: Joel Grunbaum <joelgrun@gmail.com>
Date: Wed, 16 Sep 2020 06:08:17 +0000
Subject: [PATCH] fixed usage and force add

---
 main.sh |   15 +++------------
 1 files changed, 3 insertions(+), 12 deletions(-)

diff --git a/main.sh b/main.sh
index 3b3ece3..d87be3b 100644
--- a/main.sh
+++ b/main.sh
@@ -2,16 +2,7 @@
 #A basic bash script to automate the building of arch packages
 # Usage: main.sh init|add|build_all [-f force]
 
-REPODIR=/repo/x86_64
-BUILDDIR=/repo/build
-REPONAME=
-UPDATE=N
-CLEAN=N
-SIGN=N
-KEY=""
-NUM_OLD=5
-export PACKAGER="John Doe <jd@change.me>"
-EMAIL=""
+source vars.sh
 
 ERRORS=""
 
@@ -112,7 +103,7 @@
 	cd $BUILDDIR
 	git clone https://aur.archlinux.org/$1.git
 	cd $1
-	build_pkg $1 new
+	build_pkg $1 new -f
 	return 0
 }
 
@@ -176,5 +167,5 @@
 		fi
 		;;
 	*)
-		printf "Invalid usage\nUsage: $0 init|add|build_all\n";;
+		printf "Invalid usage\nUsage: $0 init|add|build-all\n";;
 esac

--
Gitblit v1.9.3