Skip to content

Commit

Permalink
Handle necessary grep failure
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiogcx committed Aug 12, 2021
1 parent 6a735ba commit ce4bc08
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/aws-heroku-helper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,11 @@ function run_database_migration() {
# For the time being, we need to remove PostGIS from Heroku, it's not helping
print_header "Removing PostGIS from extensions";
sed --in-place '/create extension if not exists postgis/d' ./migrations/1599856186244_init/up.sql;
grep -rIno "create extension if not exists postgis" ./migrations/1599856186244_init/up.sql
{
grep -rIno "create extension if not exists postgis" ./migrations/1599856186244_init/up.sql;
} || {
echo "PostGIS removed successfully.";
}

print_header "Checking the server is online";
wait_server_ready;
Expand Down

0 comments on commit ce4bc08

Please sign in to comment.