diff --git a/.make/development/cleanup.sh b/.make/development/cleanup.sh index 217183a..997987e 100644 --- a/.make/development/cleanup.sh +++ b/.make/development/cleanup.sh @@ -1,6 +1,12 @@ #!/bin/bash set -e; +read -e -p "This will delete all your local byor-voting-server data, if any... are you sure to continue? [y/N] " response; +if [[ "${response:-n}" =~ [nN](es)* ]]; then + echo "Aborting on user choice" + exit 1; +fi + /bin/bash .make/utils/execute-in-docker.sh \ -d "rm" \ -o "-v -s -f" @@ -10,14 +16,14 @@ set -e; -o "-v" read -e -p "Do you also want to remove node modules folder? [Y/n] " response; -if [[ ${response} == y ]]; then +if [[ "${response:-y}" =~ [yY](es)* ]]; then echo "Removing all installed node modules..." rm -rf node_modules echo "...done" fi read -e -p "Do you also want to remove all unused containers, volumes, networks and images (both dangling and unreferenced)? [y/N] " response; -if [[ ${response} == y ]]; then +if [[ "${response:-n}" =~ [yY](es)* ]]; then echo "Removing all unused containers, volumes, networks and images..." docker system prune --volumes -f echo "...done" diff --git a/package-lock.json b/package-lock.json index 1db537d..5f36c77 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5663,14 +5663,12 @@ "balanced-match": { "version": "1.0.0", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "brace-expansion": { "version": "1.1.11", "bundled": true, "dev": true, - "optional": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -5685,20 +5683,17 @@ "code-point-at": { "version": "1.1.0", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "concat-map": { "version": "0.0.1", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "console-control-strings": { "version": "1.1.0", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "core-util-is": { "version": "1.0.2", @@ -5815,8 +5810,7 @@ "inherits": { "version": "2.0.3", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "ini": { "version": "1.3.5", @@ -5828,7 +5822,6 @@ "version": "1.0.0", "bundled": true, "dev": true, - "optional": true, "requires": { "number-is-nan": "^1.0.0" } @@ -5843,7 +5836,6 @@ "version": "3.0.4", "bundled": true, "dev": true, - "optional": true, "requires": { "brace-expansion": "^1.1.7" } @@ -5851,14 +5843,12 @@ "minimist": { "version": "0.0.8", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "minipass": { "version": "2.3.5", "bundled": true, "dev": true, - "optional": true, "requires": { "safe-buffer": "^5.1.2", "yallist": "^3.0.0" @@ -5877,7 +5867,6 @@ "version": "0.5.1", "bundled": true, "dev": true, - "optional": true, "requires": { "minimist": "0.0.8" } @@ -5958,8 +5947,7 @@ "number-is-nan": { "version": "1.0.1", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "object-assign": { "version": "4.1.1", @@ -5971,7 +5959,6 @@ "version": "1.4.0", "bundled": true, "dev": true, - "optional": true, "requires": { "wrappy": "1" } @@ -6093,7 +6080,6 @@ "version": "1.0.2", "bundled": true, "dev": true, - "optional": true, "requires": { "code-point-at": "^1.0.0", "is-fullwidth-code-point": "^1.0.0",