PeerTube/scripts/danger/clean/dev.sh

9 lines
209 B
Bash
Raw Normal View History

2016-10-13 21:45:23 +02:00
#!/bin/bash
2016-12-25 09:44:13 +01:00
read -p "This will remove all directories and SQL tables. Are you sure? (y/*) " -n 1 -r
echo
2016-10-13 21:45:23 +02:00
if [[ "$REPLY" =~ ^[Yy]$ ]]; then
2017-06-11 15:19:43 +02:00
NODE_ENV=test npm run ts-node "./scripts/danger/clean/cleaner"
2016-10-13 21:45:23 +02:00
fi