From 534f192b6d3d20c2c9fc991322daee0be4834588 Mon Sep 17 00:00:00 2001 From: "Hesham S. Ahmed" Date: Thu, 20 Jun 2013 17:54:25 -0500 Subject: [PATCH] IDEMPIERE-1082 Migration script fails on OS X due to non standard sed flag --- migration/migrate_postgresql.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/migration/migrate_postgresql.sh b/migration/migrate_postgresql.sh index 0c6338a100..3a212556e2 100644 --- a/migration/migrate_postgresql.sh +++ b/migration/migrate_postgresql.sh @@ -28,7 +28,7 @@ do ls $DIR/postgresql/*.sql | while read file; do echo "SELECT '`basename "$file"`' AS Filename;" echo - cat "$file" | dos2unix | sed 's/commit[ ]*;//I' + cat "$file" | dos2unix | sed 's/[Cc][Oo][Mm][Mm][Ii][Tt][ ]*;//' echo echo done @@ -39,7 +39,7 @@ then ls $DIRINI/../processes_post_migration/postgresql/*.sql | while read file; do echo "SELECT '`basename $file`' AS Filename;" echo - cat $file | dos2unix | sed 's/commit[ ]*;//I' + cat $file | dos2unix | sed 's/[Cc][Oo][Mm][Mm][Ii][Tt][ ]*;//' echo echo done @@ -49,7 +49,7 @@ then ls $DIRINI/../my_processes_post_migration/postgresql/*.sql | while read file; do echo "SELECT '`basename "$file"`' AS Filename;" echo - cat "$file" | dos2unix | sed 's/commit[ ]*;//I' + cat "$file" | dos2unix | sed 's/[Cc][Oo][Mm][Mm][Ii][Tt][ ]*;//' echo echo done