Commit d5411856 authored by Vitaly Lipatov's avatar Vitaly Lipatov

eget fix: quote variables in dirname/basename calls

parent 9a83bd1b
...@@ -740,10 +740,10 @@ check_ipfs_gateway() ...@@ -740,10 +740,10 @@ check_ipfs_gateway()
return return
fi fi
if docmd eget --check-site "$(dirname $ipfs_gateway)" ; then if docmd eget --check-site "$(dirname "$ipfs_gateway")" ; then
info "IPFS gateway $ipfs_gateway is accessible, but can't return shared $ipfs_checkQm" info "IPFS gateway $ipfs_gateway is accessible, but can't return shared $ipfs_checkQm"
else else
info "IPFS gateway $(dirname $ipfs_gateway) is not accessible" info "IPFS gateway $(dirname "$ipfs_gateway") is not accessible"
fi fi
return 1 return 1
...@@ -905,7 +905,7 @@ ipfs_cat() ...@@ -905,7 +905,7 @@ ipfs_cat()
elif [ "$ipfs_mode" = "brave" ] ; then elif [ "$ipfs_mode" = "brave" ] ; then
IPFS_CMD="$(get_ipfs_brave)" || fatal "Can't find ipfs command in Brave" IPFS_CMD="$(get_ipfs_brave)" || fatal "Can't find ipfs command in Brave"
IPFS_PRETTY_CMD="~Brave-Browser/$(basename $IPFS_CMD)" IPFS_PRETTY_CMD="~Brave-Browser/$(basename "$IPFS_CMD")"
IPFS_API="$ipfs_api_brave" IPFS_API="$ipfs_api_brave"
ipfs_api_access || fatal "Can't access to Brave IPFS API (Brave browser is not running and IPFS is not activated?)" ipfs_api_access || fatal "Can't access to Brave IPFS API (Brave browser is not running and IPFS is not activated?)"
info "Will use $IPFS_PRETTY_CMD --api $IPFS_API" info "Will use $IPFS_PRETTY_CMD --api $IPFS_API"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment