1
0
Fork 0
peertube/bin/clean_test.sh

9 lines
198 B
Bash
Raw Normal View History

2016-03-07 12:06:54 -05:00
#!/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
2016-03-07 12:53:03 -05:00
rm -rf "$basePath/../test$i"
2016-03-07 12:06:54 -05:00
done