mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-27 03:04:09 +00:00
fe3ebea95a
* Add logging for pictrs uploads * cleanup
16 lines
314 B
Bash
Executable file
16 lines
314 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
# This check is only used for CI.
|
|
|
|
CWD="$(cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)"
|
|
|
|
cd $CWD/../
|
|
|
|
find migrations -type f -name "*.sql" -print0 | while read -d $'\0' FILE
|
|
do
|
|
TMP_FILE="/tmp/tmp_pg_format.sql"
|
|
pg_format $FILE > $TMP_FILE
|
|
diff -u $FILE $TMP_FILE
|
|
done
|