clone void-packages
This commit is contained in:
parent
703341db49
commit
94c4647378
19
repo.sh
19
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
|
||||
;;
|
||||
|
Loading…
x
Reference in New Issue
Block a user