summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Brahmer <info@b-brahmer.de>2020-10-24 14:03:14 +0200
committerBenjamin Brahmer <info@b-brahmer.de>2020-10-24 14:35:31 +0200
commit66e2e6617b393d320a6726f2c852ac9931737831 (patch)
treec70ed10209a6239c48e251e364fb24dc5a84dcb6
parent189ea6b19c00ea586532b3deb154e1d408bc3c03 (diff)
fix app_public_cert -> app_public_crt, use printf
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
-rw-r--r--Makefile8
1 files 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…"; \