clone void-packages

This commit is contained in:
mollusk 2020-10-24 21:43:13 -07:00
parent 703341db49
commit 94c4647378

19
repo.sh
View File

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