From 66e2e6617b393d320a6726f2c852ac9931737831 Mon Sep 17 00:00:00 2001 From: Benjamin Brahmer Date: Sat, 24 Oct 2020 14:03:14 +0200 Subject: fix app_public_cert -> app_public_crt, use printf Signed-off-by: Benjamin Brahmer --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 06577ddf0..55489464e 100644 --- a/Makefile +++ b/Makefile @@ -157,15 +157,15 @@ appstore: #remove stray .htaccess files since they are filtered by nextcloud find $(appstore_sign_dir) -name .htaccess -exec rm {} \; - + # on macOS there is no option "--parents" for the "cp" command mkdir -p $(appstore_sign_dir)/$(app_name)/js/build $(appstore_sign_dir)/$(app_name)/js/admin cp js/build/app.min.js $(appstore_sign_dir)/$(app_name)/js/build cp js/admin/Admin.js $(appstore_sign_dir)/$(app_name)/js/admin - # export the key and cert to a file - echo ${app_private_key} > $(cert_dir)/$(app_name).key - echo ${app_public_cert} > $(cert_dir)/$(app_name).crt + # export the key and cert to a file + printf "%s" "$(app_private_key)" > "$(cert_dir)/$(app_name).key" + printf "%s" "$(app_public_crt)" > "$(cert_dir)/$(app_name).crt" @if [ -f $(cert_dir)/$(app_name).key ]; then \ echo "Signing app files…"; \ -- cgit v1.2.3