summaryrefslogtreecommitdiff
path: root/home/xyz/.local/bin/curlkg
diff options
context:
space:
mode:
Diffstat (limited to 'home/xyz/.local/bin/curlkg')
-rwxr-xr-xhome/xyz/.local/bin/curlkg3
1 files changed, 1 insertions, 2 deletions
diff --git a/home/xyz/.local/bin/curlkg b/home/xyz/.local/bin/curlkg
index 9389e680..624eb689 100755
--- a/home/xyz/.local/bin/curlkg
+++ b/home/xyz/.local/bin/curlkg
@@ -25,8 +25,7 @@ shift $((OPTIND-1))
download_dir="${1:-"$PWD"}"
[ -d "$download_dir" ] || mkdir -p "$download_dir"
-get_json ()
-{
+get_json () {
curl -s -G --data-urlencode type=get_uinfo -d outCharset=utf-8 -d start="$1" -d num=$num -d share_uid="$uid" "$homepage_url" | sed 's/.*({\(.*\)}).*/{\1}/' >> "$tmp_json_file"
}