Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terminal Visual Feedback Changes #199

Merged
merged 1 commit into from
Jun 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions pritunl-client.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ PRITUNL_CONCEALED_OUTPUTS="${PRITUNL_CONCEALED_OUTPUTS:-}" # Concealed Outputs
# ---------------------------------------------------------------
TTY_EMOJI_PACKAGE='\xF0\x9F\x93\xA6' # Package emoji
TTY_EMOJI_SCROLL='\xF0\x9F\x93\x9C' # Scroll emoji
TTY_EMOJI_EYE='\xF0\x9F\x91\x80' # Eye emoji
TTY_EMOJI_LINK='\xF0\x9F\x94\x97' # Link emoji
TTY_RED_NORMAL='\033[0;31m' # Normal red color
TTY_RED_BOLD='\033[1;31m' # Bold red color
TTY_GREEN_NORMAL='\033[0;32m' # Normal green color
Expand Down Expand Up @@ -384,7 +386,7 @@ setup_profile_file() {
# Display horizontal rule with gray color, separating content from footer
echo -e "${TTY_GRAY_NORMAL}-------------------${TTY_COLOR_RESET}"
else
echo -e "${TTY_YELLOW_NORMAL}Step outputs are concealed. Set 'concealed-outputs' to 'false' in the action inputs to reveal.${TTY_COLOR_RESET}"
echo -e "${TTY_EMOJI_EYE} Step outputs are concealed. Set ${TTY_YELLOW_NORMAL}concealed-outputs${TTY_COLOR_RESET} to ${TTY_YELLOW_NORMAL}false${TTY_COLOR_RESET} in the action inputs to reveal."
fi

# Break the loop
Expand Down Expand Up @@ -542,7 +544,7 @@ establish_vpn_connection() {
connections_expected="$(echo $profile_server_json | jq ". | length")"

if [[ "$connections_connected" -eq "$connections_expected" ]]; then
echo -e "${TTY_GREEN_BOLD}The profile has been successfully set up, with designated profile $(pluralize_word $connections_expected "server"), and a secure connection established.${TTY_COLOR_RESET}"
echo -e "${TTY_EMOJI_LINK} The ${TTY_GREEN_BOLD}profile${TTY_COLOR_RESET} has been successfully set up, with designated ${TTY_GREEN_BOLD}profile $(pluralize_word $connections_expected "server")${TTY_COLOR_RESET}, and a ${TTY_GREEN_BOLD}secure connection${TTY_COLOR_RESET} established."
break
fi

Expand Down
Loading