From 84a0359e1820ee5e1ca01be040a8775edb081cb6 Mon Sep 17 00:00:00 2001 From: Siraaj Khandkar Date: Thu, 14 Jan 2021 20:56:39 -0500 Subject: [PATCH] Use semantically-named variables --- home/lib/login_functions.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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() { -- 2.20.1