don't ask for confirmation

This commit is contained in:
Daniel Hansson 2021-02-01 21:10:14 +01:00 committed by GitHub
parent 98be946861
commit 862e95d9e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,19 +47,14 @@ case "$choice" in
"Update Nextcloud major")
if [ -f "$SCRIPTS"/update.sh ]
then
if yesno_box_yes "Do you want to fetch the latest update.sh script?"
then
print_text_in_color "$ICyan" "Removing the old script..."
rm -f "$SCRIPTS"/update.sh
print_text_in_color "$ICyan" "Downloading the Update script..."
download_script STATIC update
chmod +x "$SCRIPTS"/update.sh
bash "$SCRIPTS"/update.sh
else
bash "$SCRIPTS"/update.sh
fi
print_text_in_color "$ICyan" "Removing the old script..."
rm -f "$SCRIPTS"/update.sh
print_text_in_color "$ICyan" "Downloading the latest update script..."
download_script STATIC update
chmod +x "$SCRIPTS"/update.sh
bash "$SCRIPTS"/update.sh
else
print_text_in_color "$ICyan" "Downloading the Update script..."
print_text_in_color "$ICyan" "Downloading the latest update script..."
download_script STATIC update
chmod +x "$SCRIPTS"/update.sh
bash "$SCRIPTS"/update.sh
@ -68,22 +63,17 @@ case "$choice" in
"Update Nextcloud minor")
if [ -f "$SCRIPTS"/update.sh ]
then
if yesno_box_yes "Do you want to fetch the latest update.sh script?"
then
print_text_in_color "$ICyan" "Removing the old script..."
rm -f "$SCRIPTS"/update.sh
print_text_in_color "$ICyan" "Downloading the Update script..."
download_script STATIC update
chmod +x "$SCRIPTS"/update.sh
bash "$SCRIPTS"/update.sh minor
else
bash "$SCRIPTS"/update.sh minor
fi
else
print_text_in_color "$ICyan" "Removing the old script..."
rm -f "$SCRIPTS"/update.sh
print_text_in_color "$ICyan" "Downloading the Update script..."
download_script STATIC update
chmod +x "$SCRIPTS"/update.sh
bash "$SCRIPTS"/update.sh minor
else
print_text_in_color "$ICyan" "Downloading the latest update script..."
download_script STATIC update
chmod +x "$SCRIPTS"/update.sh
bash "$SCRIPTS"/update.sh minor
fi
;;
*)