aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/danger
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/danger')
-rwxr-xr-xscripts/danger/clean/dev.sh4
-rwxr-xr-xscripts/danger/clean/modules.sh2
-rwxr-xr-xscripts/danger/clean/prod.sh2
3 files changed, 7 insertions, 1 deletions
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 @@
1#!/bin/bash 1#!/bin/bash
2 2
3set -eu
4
3read -p "This will remove all directories and SQL tables. Are you sure? (y/*) " -n 1 -r 5read -p "This will remove all directories and SQL tables. Are you sure? (y/*) " -n 1 -r
4echo 6echo
5 7
6if [[ "$REPLY" =~ ^[Yy]$ ]]; then 8if [[ "$REPLY" =~ ^[Yy]$ ]]; then
7 NODE_ENV=test npm run ts-node -- --type-check "./scripts/danger/clean/cleaner" 9 NODE_ENV=test npm run ts-node -- --type-check "scripts/danger/clean/cleaner"
8fi 10fi
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 @@
1#!/bin/bash 1#!/bin/bash
2 2
3set -eu
4
3read -p "This will remove all node server and client modules. Are you sure? " -n 1 -r 5read -p "This will remove all node server and client modules. Are you sure? " -n 1 -r
4 6
5if [[ "$REPLY" =~ ^[Yy]$ ]]; then 7if [[ "$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 @@
1#!/bin/bash 1#!/bin/bash
2 2
3set -eu
4
3read -p "This will remove all directories and SQL tables. Are you sure? (y/*) " -n 1 -r 5read -p "This will remove all directories and SQL tables. Are you sure? (y/*) " -n 1 -r
4echo 6echo
5 7