mirror of
https://codeberg.org/vegvisir/install.git
synced 2025-09-14 08:43: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=""
|
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=*)
|
||||||
|
|
Loading…
Add table
Reference in a new issue