From 7efa009429aeff8c0e9d4708221032e8ed69b68b Mon Sep 17 00:00:00 2001
From: Anh <zenpoems@gmail.com>
Date: Sun, 20 Jan 2019 10:47:26 -0800
Subject: [PATCH] Cleanup install script

---
 get-peasoup-packages.sh | 19 +++++++++++++++----
 1 file changed, 15 insertions(+), 4 deletions(-)

diff --git a/get-peasoup-packages.sh b/get-peasoup-packages.sh
index 4b1dc8ce8..839dd9877 100755
--- a/get-peasoup-packages.sh
+++ b/get-peasoup-packages.sh
@@ -51,7 +51,6 @@ SERVER_IRDB_PKGS="
 
 ALL_PKGS="$BASE_PKGS $CLIENT_IRDB_PKGS $SERVER_IRDB_PKGS "
 
-
 install_packs()
 {
 	for i in $*
@@ -111,6 +110,16 @@ for arg in $args; do
     irdb)
 	install_packs $CLIENT_IRDB_PKGS $SERVER_IRDB_PKGS
 	;;
+    build)
+	install_packs $BASE_PKGS
+        ;;
+    test)
+	install_packs $ALL_PKGS
+        ;;
+    deploy)
+	install_packs $CLIENT_IRDB_PKGS $SERVER_IRDB_PKGS
+        ;;
+
     *)
 	echo "$arg not recognized. Recognized args: all, base, client-irdb,";
 	echo "  server-irdb, irdb, test, sql.";
@@ -124,8 +133,10 @@ cd irdb_transforms
 sudo ./get-packages.sh
 cd $orig_dir
 
-cd daffy
-sudo ./get-packages.sh
-cd $orig_dir
+if [ ! -z $DAFFY_HOME ]; then
+	cd daffy
+	sudo ./get-packages.sh
+	cd $orig_dir
+fi
 
 echo Installing packages complete.
-- 
GitLab