From fcc87c9bf7d4f21c443c7bada970c1c3db604ea7 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 2 Mar 2018 19:52:07 +0000 Subject: [PATCH] quotes --- src/freedombone-app-ipfs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/freedombone-app-ipfs b/src/freedombone-app-ipfs index d5859ae0..fca4cbfc 100755 --- a/src/freedombone-app-ipfs +++ b/src/freedombone-app-ipfs @@ -369,7 +369,7 @@ function install_ipfs_js { systemctl restart ${IPFS_DAEMON_NAME} if [ -d /etc/avahi ]; then - su -c "echo $($IPFS_PATH/jsipfs id | grep '\"ID\":' | awk -F '\"' '{print $4}') > /tmp/ipfsid" - $MY_USERNAME + su -c "echo $($IPFS_PATH/jsipfs id | grep '\"ID\":' | awk -F '\"' '{print $4}') > /tmp/ipfsid" - "$MY_USERNAME" if [ ! -f /tmp/ipfsid ]; then echo 'No IPFS identity was created' exit 37895 @@ -586,7 +586,7 @@ function install_ipfs_go { systemctl restart ipfs if [ -d /etc/avahi ]; then - su -c "echo $($IPFS_PATH/ipfs id | grep '\"ID\":' | awk -F '\"' '{print $4}') > /tmp/ipfsid" - $MY_USERNAME + su -c "echo $("$IPFS_PATH/ipfs" id | grep '\"ID\":' | awk -F '\"' '{print $4}') > /tmp/ipfsid" - "$MY_USERNAME" if [ ! -f /tmp/ipfsid ]; then echo 'No IPFS identity was created' exit 37895