From 423f9894712f7789becba46d3c1e1557f5d0b888 Mon Sep 17 00:00:00 2001 From: qo-op Date: Tue, 17 Nov 2020 02:01:40 +0100 Subject: [PATCH] jq ARG passing --- zen/tools/init_IPFS_with_cesium_loginKEY.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zen/tools/init_IPFS_with_cesium_loginKEY.sh b/zen/tools/init_IPFS_with_cesium_loginKEY.sh index 9613287..b9a6144 100755 --- a/zen/tools/init_IPFS_with_cesium_loginKEY.sh +++ b/zen/tools/init_IPFS_with_cesium_loginKEY.sh @@ -101,8 +101,8 @@ echo "Configure IPFS: copy the lines above in your console" echo "then run jq commands and make your IPFS NODE https://Cesium.app compatible" echo " -> Read your Cesium messages to find how to Bootstrap your node" echo -echo "jq '.Identity.PeerID=\"\$PeerID\"' ~/.ipfs/config" -echo "jq '.Identity.PrivKey=\"\$PrivKey\"' ~/.ipfs/config" +echo "jq -r --arg PeerID \"$PeerID\" '.Identity.PeerID=$PeerID' ~/.ipfs/config" +echo "jq -r --arg PrivKey \"$PrivKey\" '.Identity.PrivKey=$PrivKey' ~/.ipfs/config" echo "" rm -f /tmp/secret.dunikey }