From: Siraaj Khandkar Date: Fri, 15 Jan 2021 01:56:39 +0000 (-0500) Subject: Use semantically-named variables X-Git-Url: https://git.xandkar.net/?p=khome.git;a=commitdiff_plain;h=84a0359e1820ee5e1ca01be040a8775edb081cb6;hp=1be8e74bb12167f8e6adf899612b20cfb16a9ce5 Use semantically-named variables --- 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() {