fix: use term 'overwrite' instead of 'override'

This commit is contained in:
Victor Westerlund 2025-08-07 06:41:20 +02:00
parent f8ca0ba0b3
commit 1f6fdbba4d
Signed by: vlw
GPG key ID: D0AD730E1057DFC6

View file

@ -4,7 +4,7 @@
cwd="" cwd=""
install="" install=""
example="" example=""
override="" overwrite=""
echo_err() { echo_err() {
echo "!! -> $1" echo "!! -> $1"
@ -64,7 +64,7 @@ configure_vegvisir() {
fi fi
# A configuration file already exists # A configuration file already exists
if [[ -f "vegvisir/.env.ini" && "$override" != "y" ]] ; then if [[ -f "vegvisir/.env.ini" && "$overwrite" != "y" ]] ; then
echo "A Vegvisir configuration file already exists at: ${cwd}/vegvisir/.env.ini" echo "A Vegvisir configuration file already exists at: ${cwd}/vegvisir/.env.ini"
read -p "Do you want to overwrite this file? (y/n): " choice </dev/tty read -p "Do you want to overwrite this file? (y/n): " choice </dev/tty
@ -184,8 +184,8 @@ for arg in "$@"; do
install="${arg#*=}" install="${arg#*=}"
;; ;;
--override=*) --overwrite=*)
override="${arg#*=}" overwrite="${arg#*=}"
;; ;;
--example=*) --example=*)