8000 chore: check file existence before running psql against it · supabase/postgres@28c4ea2 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 28c4ea2

Browse files
committed
chore: check file existence before running psql against it
1 parent 4af43eb commit 28c4ea2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ansible/files/admin_api_scripts/pg_upgrade_complete.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ function complete_pg_upgrade {
6060

6161
if [ -d /data/sql ]; then
6262
for FILE in /data/sql/*.sql; do
63-
run_sql -f $FILE
63+
if [ -f "$FILE" ]; then
64+
run_sql -f $FILE
65+
fi
6466
done
6567
fi
6668

0 commit comments

Comments
 (0)
0