Skip to content

Commit

Permalink
Add the necessary -n option to echo
Browse files Browse the repository at this point in the history
  • Loading branch information
Antiz96 committed May 19, 2024
1 parent 7e3fcdb commit 15166c4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/script/arch-update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,13 @@ mkdir -p "${statedir}" "${tmpdir}"
# Definition of the main_msg function: Display a message as a main message
main_msg() {
msg="${1}"
echo -e "${blue}==>${color_off}${bold} ${msg}${color_off}"
echo -ne "${blue}==>${color_off}${bold} ${msg}${color_off}"
}

# Definition of the info_msg function: Display a message as an information message
info_msg() {
msg="${1}"
echo -e "${green}==>${color_off}${bold} ${msg}${color_off}"
echo -ne "${green}==>${color_off}${bold} ${msg}${color_off}"
}

# Definition of the ask_msg function: Display a message as an interactive question
Expand All @@ -107,13 +107,13 @@ ask_msg() {
# Definition of the warning_msg function: Display a message as a warning message
warning_msg() {
msg="${1}"
echo -e "${yellow}==> WARNING:${color_off}${bold} ${msg}${color_off}"
echo -ne "${yellow}==> WARNING:${color_off}${bold} ${msg}${color_off}"
}

# Definition of the error_msg function: Display a message as an error message
error_msg() {
msg="${1}"
echo -e >&2 "${red}==> ERROR:${color_off}${bold} ${msg}${color_off}"
echo -ne >&2 "${red}==> ERROR:${color_off}${bold} ${msg}${color_off}"
}

# Definition of the continue_msg function: Display the continue message
Expand Down

0 comments on commit 15166c4

Please sign in to comment.