diff --git a/.rm_site b/.rm_site index de0c384..9893ade 100755 --- a/.rm_site +++ b/.rm_site @@ -14,4 +14,17 @@ fi echo -e "${RED}Be aware that this script removes the config and webroot files from your system!" echo -e "They can't be recovered!" -echo -e "Use it only if you understand, what this script doing!${NC}" \ No newline at end of file +echo -e "Use it only if you understand, what this script doing!" +echo -e "${YELLOW} Do you want to continue and remove your site?${NC}" + +while true; do + read -p "(y/n): " SURE + case ${SURE} in + [Yy]* ) + break;; + [Nn]* ) + exit 0 + ;; + * ) echo "Please answer y[es] or n[o].";; + esac +done diff --git a/install_wisski.bash b/install_wisski.bash index 6ebda06..3330e4f 100755 --- a/install_wisski.bash +++ b/install_wisski.bash @@ -647,11 +647,11 @@ while true; do mkdir -p web/libraries ## get colorbox wget https://github.com/jackmoore/colorbox/archive/refs/heads/master.zip -P web/libraries/ - unzip web/libraries/master.zip -d web/libraries/ + unzip web/libraries/master.zip -d web/libraries/ &> /dev/null mv web/libraries/colorbox-master web/libraries/colorbox ## get mirador wget http://wisskieu.nasarek.org/sites/default/files/assets/mirador.zip -P web/libraries/ - unzip web/libraries/mirador.zip -d web/libraries/ + unzip web/libraries/mirador.zip -d web/libraries/ &> /dev/null break;; [Nn]* ) echo