X-Git-Url: https://git.xandkar.net/?p=khome.git;a=blobdiff_plain;f=home%2Flib%2Flogin_functions.sh;h=042ea60adc41be936604e047e0c58277bded360c;hp=15f6e3c412f9bccf82ef273bf71b8f35c93aca67;hb=84a0359e1820ee5e1ca01be040a8775edb081cb6;hpb=1be8e74bb12167f8e6adf899612b20cfb16a9ce5 diff --git a/home/lib/login_functions.sh b/home/lib/login_functions.sh index 15f6e3c..042ea60 100644 --- a/home/lib/login_functions.sh +++ b/home/lib/login_functions.sh @@ -263,7 +263,10 @@ yt_video() { } gh_fetch_repos() { - curl "https://api.github.com/$1/$2/repos?page=1&per_page=10000" + local -r user_type="$1" + local -r user_name="$2" + + curl "https://api.github.com/$user_type/$user_name/repos?page=1&per_page=10000" } gh_clone() {