From 94c464737876d269b5b8e335ffbacfad69feb5ce Mon Sep 17 00:00:00 2001 From: mollusk Date: Sat, 24 Oct 2020 21:43:13 -0700 Subject: [PATCH] clone void-packages --- repo.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/repo.sh b/repo.sh index 7680d28..9000a61 100755 --- a/repo.sh +++ b/repo.sh @@ -14,7 +14,22 @@ help_file(){ """ } +get_void_pkgs(){ + echo -n "Location to place void-packages?: " + read vpkgs_location + if [ -z "${vpkgs_location}" ];then + vpkgs_location="${HOME}/vur" + echo "Creating directory: ${vpkgs_location}" + mkdir -p "${vpkgs_location}" + git clone https://github.com/void-linux/void-packages.git "${vpkgs_location}" + + elif [ -n "${vpkgs_location}" ];then + echo "Creating directory: ${vpkgs_location}" + git clone https://github.com/void-linux/void-packages.git "${vpkgs_location}" + + fi +} gen_conf(){ @@ -128,6 +143,10 @@ case "${1}" in sign_pkgs ;; + -vp | --void-packages) + get_void_pkgs + ;; + *) help_file ;;