]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - scripts/danger/clean/dev.sh
Try to fix travis tests
[github/Chocobozzz/PeerTube.git] / scripts / danger / clean / dev.sh
index 5f09565cf0071b8506d90df2cf0d34f2d6fb7828..14b45e13bd7f44c0d9949b05142f5a24f39cbc1f 100755 (executable)
@@ -1,7 +1,10 @@
 #!/bin/bash
 
-read -p "This will remove all directories and Mongo database. Are you sure? " -n 1 -r
+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 node "./scripts/danger/clean/cleaner"
+  NODE_ENV=test npm run ts-node -- --type-check "scripts/danger/clean/cleaner"
 fi