From 0e4ffb4b678962d5ff7a4a7d8952033bc84725da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Andr=C3=A8s?= Date: Tue, 27 Mar 2018 09:35:12 +0100 Subject: Clean shell scripts (#398) --- scripts/danger/clean/dev.sh | 4 +++- scripts/danger/clean/modules.sh | 2 ++ scripts/danger/clean/prod.sh | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) (limited to 'scripts/danger/clean') diff --git a/scripts/danger/clean/dev.sh b/scripts/danger/clean/dev.sh index cd8456772..14b45e13b 100755 --- a/scripts/danger/clean/dev.sh +++ b/scripts/danger/clean/dev.sh @@ -1,8 +1,10 @@ #!/bin/bash +set -eu + read -p "This will remove all directories and SQL tables. Are you sure? (y/*) " -n 1 -r echo if [[ "$REPLY" =~ ^[Yy]$ ]]; then - NODE_ENV=test npm run ts-node -- --type-check "./scripts/danger/clean/cleaner" + NODE_ENV=test npm run ts-node -- --type-check "scripts/danger/clean/cleaner" fi diff --git a/scripts/danger/clean/modules.sh b/scripts/danger/clean/modules.sh index 99555a693..f59d6b675 100755 --- a/scripts/danger/clean/modules.sh +++ b/scripts/danger/clean/modules.sh @@ -1,5 +1,7 @@ #!/bin/bash +set -eu + read -p "This will remove all node server and client modules. Are you sure? " -n 1 -r if [[ "$REPLY" =~ ^[Yy]$ ]]; then diff --git a/scripts/danger/clean/prod.sh b/scripts/danger/clean/prod.sh index 9103a7944..0675600c4 100755 --- a/scripts/danger/clean/prod.sh +++ b/scripts/danger/clean/prod.sh @@ -1,5 +1,7 @@ #!/bin/bash +set -eu + read -p "This will remove all directories and SQL tables. Are you sure? (y/*) " -n 1 -r echo -- cgit v1.2.3