Clone void-packages with ssh
This commit is contained in:
parent
080a96991d
commit
8ba540df51
25
repo.sh
25
repo.sh
@ -25,9 +25,30 @@ get_void_pkgs(){
|
|||||||
git clone https://github.com/void-linux/void-packages.git "${vpkgs_location}"
|
git clone https://github.com/void-linux/void-packages.git "${vpkgs_location}"
|
||||||
|
|
||||||
elif [ -n "${vpkgs_location}" ];then
|
elif [ -n "${vpkgs_location}" ];then
|
||||||
echo "Creating directory: ${vpkgs_location}"
|
while true;do
|
||||||
git clone https://github.com/void-linux/void-packages.git "${vpkgs_location}"
|
echo -n "Use ssh? [y/N]: "
|
||||||
|
read use_ssh
|
||||||
|
|
||||||
|
if [ -z "${use_ssh}" ] || [ "${use_ssh}" = "n" ] || [ "${use_ssh}" = "N" ] ;then
|
||||||
|
echo "Creating directory: ${vpkgs_location}"
|
||||||
|
|
||||||
|
git clone https://github.com/void-linux/void-packages.git "${vpkgs_location}" || exit 1
|
||||||
|
break
|
||||||
|
|
||||||
|
|
||||||
|
elif [ "${use_ssh}" = "y" ] || [ "${use_ssh}" = "Y" ];then
|
||||||
|
|
||||||
|
echo -n "Remote git username? (i.e github username): "
|
||||||
|
read git_user
|
||||||
|
|
||||||
|
git clone github.com:"${git_user}"/void-packages.git "${vpkgs_location}" || exit 1
|
||||||
|
break
|
||||||
|
|
||||||
|
else
|
||||||
|
|
||||||
|
echo "please enter y, n, or leave blank"
|
||||||
|
fi
|
||||||
|
done
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user