diff options
author | Léo Andrès <leo@ndrs.fr> | 2018-03-27 09:35:12 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-03-27 10:35:12 +0200 |
commit | 0e4ffb4b678962d5ff7a4a7d8952033bc84725da (patch) | |
tree | b116dfe4244f645aa1c4740039544010ef7c3194 /scripts/danger | |
parent | d5b7d9110dd637a7f67ce9e430145314812a8df1 (diff) | |
download | PeerTube-0e4ffb4b678962d5ff7a4a7d8952033bc84725da.tar.gz PeerTube-0e4ffb4b678962d5ff7a4a7d8952033bc84725da.tar.zst PeerTube-0e4ffb4b678962d5ff7a4a7d8952033bc84725da.zip |
Clean shell scripts (#398)
Diffstat (limited to 'scripts/danger')
-rwxr-xr-x | scripts/danger/clean/dev.sh | 4 | ||||
-rwxr-xr-x | scripts/danger/clean/modules.sh | 2 | ||||
-rwxr-xr-x | scripts/danger/clean/prod.sh | 2 |
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 | ||
3 | set -eu | ||
4 | |||
3 | read -p "This will remove all directories and SQL tables. Are you sure? (y/*) " -n 1 -r | 5 | read -p "This will remove all directories and SQL tables. Are you sure? (y/*) " -n 1 -r |
4 | echo | 6 | echo |
5 | 7 | ||
6 | if [[ "$REPLY" =~ ^[Yy]$ ]]; then | 8 | if [[ "$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" |
8 | fi | 10 | 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 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/bash |
2 | 2 | ||
3 | set -eu | ||
4 | |||
3 | read -p "This will remove all node server and client modules. Are you sure? " -n 1 -r | 5 | read -p "This will remove all node server and client modules. Are you sure? " -n 1 -r |
4 | 6 | ||
5 | if [[ "$REPLY" =~ ^[Yy]$ ]]; then | 7 | 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 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/bash |
2 | 2 | ||
3 | set -eu | ||
4 | |||
3 | read -p "This will remove all directories and SQL tables. Are you sure? (y/*) " -n 1 -r | 5 | read -p "This will remove all directories and SQL tables. Are you sure? (y/*) " -n 1 -r |
4 | echo | 6 | echo |
5 | 7 | ||