From 0c3a5aac87c7ac21b4dc9d0df7bb1b974643bb25 Mon Sep 17 00:00:00 2001 From: bolvan Date: Fri, 24 May 2019 10:36:05 +0300 Subject: [PATCH] install_easy : keep=N if we didnt remove /opt/zapret --- install_easy.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install_easy.sh b/install_easy.sh index 4f81fad..76b6013 100755 --- a/install_easy.sh +++ b/install_easy.sh @@ -347,12 +347,12 @@ check_location() echo easy install is supported only from default location : $ZAPRET_BASE echo currently its run from $EXEDIR if ask_yes_no N "do you want the installer to copy it for you"; then - local keep=Y + local keep=N if [ -d "$ZAPRET_BASE" ]; then echo installer found existing $ZAPRET_BASE echo directory needs to be replaced. config and custom scripts can be kept or replaced with clean version if ask_yes_no N "do you want to delete all files there and copy this version"; then - ask_yes_no Y "keep config and custom scripts" || keep=N + ask_yes_no Y "keep config and custom scripts" && keep=Y [ "$keep" = "Y" ] && backup_restore_settings 1 rm -r "$ZAPRET_BASE" else