Clean shell scripts (#398)

This commit is contained in:
Léo Andrès
2018-03-27 09:35:12 +01:00
committed by Chocobozzz
parent d5b7d9110d
commit 0e4ffb4b67
22 changed files with 97 additions and 59 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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