From cd57aebb4c5b43a0cc117c7e9c84aabc4322d715 Mon Sep 17 00:00:00 2001 From: Erfan Date: Mon, 28 Aug 2023 20:41:19 +0330 Subject: [PATCH] fix: get config function bug --- tuic.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tuic.sh b/tuic.sh index afbba2c..59d090b 100644 --- a/tuic.sh +++ b/tuic.sh @@ -75,8 +75,8 @@ print_config_url() { get_config_url() { list_users read -p "Enter the UUID of the user you want to get : " uuid - uuid="\"$uuid\"" - password=$(jq ".users.$uuid" "$CONFIG_FILE") + search_uuid=\"$uuid\" + password=$(jq -r ".users.$search_uuid" "$CONFIG_FILE") if [ "$password" != "null" ]; then print_config_url $uuid $password else @@ -132,4 +132,4 @@ while true; do read -p "Press Enter to continue..." ;; esac -done \ No newline at end of file +done