Fix some bug related to DEBUG variable

This commit is contained in:
Sarina
2024-08-06 00:13:54 +03:30
parent c0abbae31e
commit 3974f89429
2 changed files with 11 additions and 8 deletions

View File

@ -150,7 +150,7 @@ hysteria2_get_user_handler() {
done
# Run the command and suppress error output
if ! python3 "$CLI_PATH" get-user --username "$username" > /dev/null 2>&1; then
if ! python3 "$CLI_PATH" get-user --username "$username" 2>/dev/null; then
echo -e "${red}Error:${NC} User '$username' not found."
return 1
fi
@ -293,7 +293,7 @@ display_hysteria2_menu() {
echo -e "${cyan}[3] ${NC}↝ Edit User"
echo -e "${cyan}[4] ${NC}↝ Remove User"
echo -e "${cyan}[5] ${NC}↝ Get User"
echo -e "${cyan}[6] ${NC}↝ List Users (WIP)"
echo -e "${cyan}[6] ${NC}↝ List Users"
echo -e "${cyan}[7] ${NC}↝ Check Traffic Status"
echo -e "${cyan}[8] ${NC}↝ Show User URI"