Skip to content

Commit 546c49c

Browse files
committed
safety check
1 parent 889cb56 commit 546c49c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

reset_database.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1-
psql -f init.sql && diesel migration run && psql -f testing.sql
1+
if [ "$HOSTNAME" = queue ]; then
2+
printf '%s\n' "No you don't"
3+
else
4+
psql -f init.sql && diesel migration run && psql -f testing.sql
5+
fi
6+

0 commit comments

Comments
 (0)