IDEMPIERE-1082 Migration script fails on OS X due to non standard sed flag
This commit is contained in:
parent
e6aba812eb
commit
534f192b6d
|
@ -28,7 +28,7 @@ do
|
||||||
ls $DIR/postgresql/*.sql | while read file; do
|
ls $DIR/postgresql/*.sql | while read file; do
|
||||||
echo "SELECT '`basename "$file"`' AS Filename;"
|
echo "SELECT '`basename "$file"`' AS Filename;"
|
||||||
echo
|
echo
|
||||||
cat "$file" | dos2unix | sed 's/commit[ ]*;//I'
|
cat "$file" | dos2unix | sed 's/[Cc][Oo][Mm][Mm][Ii][Tt][ ]*;//'
|
||||||
echo
|
echo
|
||||||
echo
|
echo
|
||||||
done
|
done
|
||||||
|
@ -39,7 +39,7 @@ then
|
||||||
ls $DIRINI/../processes_post_migration/postgresql/*.sql | while read file; do
|
ls $DIRINI/../processes_post_migration/postgresql/*.sql | while read file; do
|
||||||
echo "SELECT '`basename $file`' AS Filename;"
|
echo "SELECT '`basename $file`' AS Filename;"
|
||||||
echo
|
echo
|
||||||
cat $file | dos2unix | sed 's/commit[ ]*;//I'
|
cat $file | dos2unix | sed 's/[Cc][Oo][Mm][Mm][Ii][Tt][ ]*;//'
|
||||||
echo
|
echo
|
||||||
echo
|
echo
|
||||||
done
|
done
|
||||||
|
@ -49,7 +49,7 @@ then
|
||||||
ls $DIRINI/../my_processes_post_migration/postgresql/*.sql | while read file; do
|
ls $DIRINI/../my_processes_post_migration/postgresql/*.sql | while read file; do
|
||||||
echo "SELECT '`basename "$file"`' AS Filename;"
|
echo "SELECT '`basename "$file"`' AS Filename;"
|
||||||
echo
|
echo
|
||||||
cat "$file" | dos2unix | sed 's/commit[ ]*;//I'
|
cat "$file" | dos2unix | sed 's/[Cc][Oo][Mm][Mm][Ii][Tt][ ]*;//'
|
||||||
echo
|
echo
|
||||||
echo
|
echo
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue