From fe15d3a7131fe3f4fed64abfaa065c194a380b7b Mon Sep 17 00:00:00 2001 From: nathan Date: Mon, 6 Jun 2016 15:59:32 -0400 Subject: [PATCH] final fixes to generate-app-id new feature --- scripts/generate-app-id | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/generate-app-id b/scripts/generate-app-id index 69d0bd6..e2d7f7c 100755 --- a/scripts/generate-app-id +++ b/scripts/generate-app-id @@ -3,7 +3,7 @@ script_folder=$(dirname $0) source config/asc.conf || exit 1 sqlplus ${username}/${password}@${database_connection} @${script_folder}/generate_new_app_id.sql || exit 1 -app_id=$(head -c -1 new_app_id.txt | sed -e 's/[[:space:]]*$//') +app_id=$(head -c -1 config/new_app_id.txt | sed -e 's/[[:space:]]*$//') if [ -h config/asc.conf ]; then conf_file=$(readlink ./config/asc.conf) @@ -11,7 +11,7 @@ if [ -h config/asc.conf ]; then read can_write if [ "${can_write}" == "y" ]; then - sed -i 's/^apexappid=.*/apexappid=${app_id}/' config/${conf_file} + sed -i "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: " cat config/${conf_file} else