Skip to content

Commit

Permalink
Misc shellcheck improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
JustArchi committed Nov 22, 2023
1 parent 6833d92 commit 4d38e1a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tools/rename.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,23 +43,23 @@ ERROR() {
}

COLOR_DARK_GRAY() {
echo "\033[1;30m$*\033[0m"
printf "\033[1;30m%s\033[0m\n" "$*"
}

COLOR_RED() {
echo "\033[1;31m$*\033[0m"
printf "\033[1;31m%s\033[0m\n" "$*"
}

COLOR_GREEN() {
echo "\033[1;32m$*\033[0m"
printf "\033[1;32m%s\033[0m\n" "$*"
}

COLOR_YELLOW() {
echo "\033[1;33m$*\033[0m"
printf "\033[1;33m%s\033[0m\n" "$*"
}

COLOR_WHITE() {
echo "\033[1;37m$*\033[0m"
printf "\033[1;37m%s\033[0m\n" "$*"
}

GET_INPUT_BOOL() {
Expand All @@ -75,7 +75,7 @@ GET_INPUT_BOOL() {
esac

while :; do
echo -n "${1} [${helper_text}]: " 1>&2
printf "%s " "${1} [${helper_text}]:" 1>&2
read -r user_input

if [ -z "$user_input" ]; then
Expand All @@ -96,7 +96,7 @@ GET_INPUT_STRING() {
return 1
fi

echo -n "${1} ["${2}"]: " 1>&2
printf "%s " "${1} [${2}]:" 1>&2
read -r user_input

if [ -z "$user_input" ]; then
Expand Down

0 comments on commit 4d38e1a

Please sign in to comment.