mirror of
https://codeberg.org/vegvisir/install.git
synced 2025-09-14 00:33:41 +02:00
fix: use term 'overwrite' instead of 'override'
This commit is contained in:
parent
f8ca0ba0b3
commit
1f6fdbba4d
1 changed files with 4 additions and 4 deletions
|
@ -4,7 +4,7 @@
|
|||
cwd=""
|
||||
install=""
|
||||
example=""
|
||||
override=""
|
||||
overwrite=""
|
||||
|
||||
echo_err() {
|
||||
echo "!! -> $1"
|
||||
|
@ -64,7 +64,7 @@ configure_vegvisir() {
|
|||
fi
|
||||
|
||||
# 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"
|
||||
read -p "Do you want to overwrite this file? (y/n): " choice </dev/tty
|
||||
|
||||
|
@ -184,8 +184,8 @@ for arg in "$@"; do
|
|||
install="${arg#*=}"
|
||||
;;
|
||||
|
||||
--override=*)
|
||||
override="${arg#*=}"
|
||||
--overwrite=*)
|
||||
overwrite="${arg#*=}"
|
||||
;;
|
||||
|
||||
--example=*)
|
||||
|
|
Loading…
Add table
Reference in a new issue