1
0
Fork 0
peertube/bin/clean_test.sh
2016-03-07 18:53:03 +01:00

8 lines
198 B
Bash
Executable file

#!/bin/bash
basePath=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
for i in $(seq 1 6); do
printf "use peertube-test%s;\ndb.dropDatabase();" "$i" | mongo
rm -rf "$basePath/../test$i"
done