Use perl for portable -i
This commit is contained in:
parent
d4b5e4d3e2
commit
581b18309e
@ -74,7 +74,7 @@ function legacy_apex_export {
|
|||||||
|
|
||||||
mv "f${apexappid}" apex #
|
mv "f${apexappid}" apex #
|
||||||
|
|
||||||
sed -i '' s^@application^@apex/application^ apex/install.sql
|
perl -pi -e 's^\@application^\@apex/application^' apex/install.sql
|
||||||
}
|
}
|
||||||
|
|
||||||
function apex_export {
|
function apex_export {
|
||||||
@ -100,7 +100,7 @@ EOF
|
|||||||
mv "f${apexappid}" apex
|
mv "f${apexappid}" apex
|
||||||
|
|
||||||
# fixup install paths. The tool generates absolute paths
|
# fixup install paths. The tool generates absolute paths
|
||||||
sed -E -i '' 's^@(.*/)?application/^@apex/application/^' apex/install.sql
|
perl -pi -e 's^\@/?(.*/)?application/^\@apex/application/^' apex/install.sql
|
||||||
else
|
else
|
||||||
echo WARNING: Did not find SQLcl. Using legacy APEXExportSplitter instead
|
echo WARNING: Did not find SQLcl. Using legacy APEXExportSplitter instead
|
||||||
legacy_apex_export
|
legacy_apex_export
|
||||||
@ -171,7 +171,7 @@ if [ -h config/asc.conf ]; then
|
|||||||
read can_write
|
read can_write
|
||||||
|
|
||||||
if [ "${can_write}" == "y" ]; then
|
if [ "${can_write}" == "y" ]; then
|
||||||
sed -i "s/^apexappid=.*/apexappid=${app_id}/" config/${conf_file}
|
perl -pi -e "s/^apexappid=.*/apexappid=${app_id}/" config/${conf_file}
|
||||||
echo "apexappid in '${conf_file}' has been replaced with '${app_id}'. The new config file looks like this: "
|
echo "apexappid in '${conf_file}' has been replaced with '${app_id}'. The new config file looks like this: "
|
||||||
cat config/${conf_file}
|
cat config/${conf_file}
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user