From 438d5347494a320c7d9c085f4e5e7f235f87feab Mon Sep 17 00:00:00 2001 From: anmol Date: Thu, 15 Oct 2020 20:56:34 +0530 Subject: [PATCH] Removed new line --- scripts/install | 4 ++-- scripts/upgrade | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/install b/scripts/install index e30438f..2d4fe7c 100755 --- a/scripts/install +++ b/scripts/install @@ -156,8 +156,8 @@ pushd "$final_path" full_private_key="PASSPORT_PRIVATE_KEY="\"$private_key\" public_key=$(sed -E ':a;N;$!ba;s/\r{0,1}\n/\\n/g' storage/oauth-public.key) full_public_key="PASSPORT_PUBLIC_KEY="\"$public_key\" - echo "\n#Output the private key\n$full_private_key" >> .env - echo "\n#Output the public key\n$full_public_key" >> .env + echo "$full_private_key" >> .env + echo "$full_public_key" >> .env ynh_replace_string --match_string="__IDENTITY__" --replace_string="$mobile_id" --target_file="$config" ynh_replace_string --match_string="__KEY__" --replace_string="$mobile_key" --target_file="$config" ynh_app_setting_set --app=$app --key=mobile_id --value=$mobile_id diff --git a/scripts/upgrade b/scripts/upgrade index 17783d3..13fb0db 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -192,8 +192,8 @@ if [ -f $final_path/storage/oauth-private.key ]; then ynh_replace_string --match_string="__IDENTITY__" --replace_string="$mobile_id" --target_file="$config" ynh_replace_string --match_string="__KEY__" --replace_string="$mobile_key" --target_file="$config" - echo "\n#Output the private key\n$full_private_key" >> $final_path/.env - echo "\n#Output the public key\n$full_public_key" >> $final_path/.env + echo "$full_private_key" >> $final_path/.env + echo "$full_public_key" >> $final_path/.env else pushd "$final_path" php$phpversion artisan down --retry="10" @@ -206,8 +206,8 @@ else full_private_key="PASSPORT_PRIVATE_KEY="\"$private_key\" public_key=$(sed -E ':a;N;$!ba;s/\r{0,1}\n/\\n/g' storage/oauth-public.key) full_public_key="PASSPORT_PUBLIC_KEY="\"$public_key\" - echo "\n#Output the private key\n$full_private_key" >> .env - echo "\n#Output the public key\n$full_public_key" >> .env + echo "$full_private_key" >> .env + echo "$full_public_key" >> .env ynh_replace_string --match_string="__IDENTITY__" --replace_string="$mobile_id" --target_file="$config" ynh_replace_string --match_string="__KEY__" --replace_string="$mobile_key" --target_file="$config" ynh_app_setting_set --app=$app --key=mobile_id --value=$mobile_id