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 ;;