PeerTube/scripts/danger/clean/dev.sh

11 lines
232 B
Bash
Executable File

#!/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"
fi