File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,8 +36,8 @@ ntriples=$(curl -k -s -G \
3636 " ${ADMIN_BASE_URL} access"
3737)
3838
39- auth1=$( cat " $ntriples " | grep " <http://www.w3.org/1999/02/22-rdf-syntax-ns#> <https://w3id.org/atomgraph/linkeddatahub/admin/acl#OwnerAuthorization>" | cut -d' ' -f1 | head -n1 )
40- auth2=$( cat " $ntriples " | grep " <http://www.w3.org/ns/auth/acl#agent> <${AGENT_URI} >" | cut -d' ' -f1 | head -n1 )
39+ auth1=$( echo " $ntriples " | grep -F " <http://www.w3.org/1999/02/22-rdf-syntax-ns#type > <https://w3id.org/atomgraph/linkeddatahub/admin/acl#OwnerAuthorization>" | cut -d' ' -f1)
40+ auth2=$( echo " $ntriples " | grep -F " <http://www.w3.org/ns/auth/acl#agent> <${AGENT_URI} >" | cut -d' ' -f1)
4141
4242# if the subjects of the two triples are different, the agent is not the owner of the container
4343if [ " $auth1 " != " $auth2 " ]; then
You can’t perform that action at this time.
0 commit comments