[Scripts] Improve language

This commit is contained in:
Riku Rauhala
2024-08-20 11:55:45 +03:00
parent 9dfe65d1c8
commit cacc275235
3 changed files with 13 additions and 13 deletions
+8 -8
View File
@@ -48,12 +48,12 @@ set_custom_select_prompt() {
PS3="Please enter your choice: "
options=(
"Set up oodikone from scratch."
"Reset all real data."
"Reset single database."
"Set up Oodikone from scratch"
"Reset all real data"
"Reset single database"
"Restore data from dumps"
"Docker system prune"
"Quit."
"Quit"
)
}
@@ -66,11 +66,11 @@ set_custom_select_prompt
while true; do
select opt in "${options[@]}"; do
case $opt in
"Set up oodikone from scratch.")
"Set up Oodikone from scratch")
set_up_oodikone_from_scratch;;
"Reset all real data.")
"Reset all real data")
reset_all_real_data;;
"Reset single database.")
"Reset single database")
reset_single_database
set_custom_select_prompt # Set prompt back to initial values
;;
@@ -78,7 +78,7 @@ while true; do
restore_data_from_dumps;;
"Docker system prune")
docker_prune;;
"Quit.")
"Quit")
break 2;;
*) msg "${RED}Invalid option:${NOFORMAT} $REPLY
";;
+3 -3
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
# This file includes functions that are used to setup oodikone. File doesn't run anything
# by itself and should be sourced from other script.
# This file includes functions that are used to setup Oodikone
# File doesn't run anything by itself and should be sourced from other scripts
# === Config ===
@@ -228,7 +228,7 @@ linting and formatting"
infomsg "Building images"
"$PROJECT_ROOT"/run.sh both anon build
successmsg "Setup ready, oodikone can be started! See README for more info."
successmsg "Setup ready, Oodikone can be started! See README for more info."
}
docker_prune() {
+2 -2
View File
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
# This file includes some utility functions that are used in oodikone scripts.
# This file includes some utility functions that are used in Oodikone scripts
# Functions are based on https://betterdev.blog/minimal-safe-bash-script-template/
# Print messages and logs that are not script output to stderr
@@ -27,7 +27,7 @@ warningmsg() {
}
# Quit and exit with given message and error code
# By default uses exit code 1, message must be given.
# By default uses exit code 1, message must be given
die() {
local msg=$1
local code=${2-1}