Skip to content

Commit

Permalink
fix: get config function bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ErfanTech committed Aug 28, 2023
1 parent b15bfb9 commit cd57aeb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tuic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -132,4 +132,4 @@ while true; do
read -p "Press Enter to continue..."
;;
esac
done
done

0 comments on commit cd57aeb

Please sign in to comment.