Skip to content

Commit

Permalink
Added urlencode functions to scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
namedgraph committed Oct 18, 2023
1 parent dd739db commit 8cdae35
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/admin/acl/create-authorization.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ print_usage()

hash turtle 2>/dev/null || { echo >&2 "turtle not on \$PATH. Need to set \$JENA_HOME. Aborting."; exit 1; }

urlencode() {
python -c 'import urllib, sys; print urllib.quote(sys.argv[1], sys.argv[2])' \
"$1" "$urlencode_safe"
}

args=()
while [[ $# -gt 0 ]]
do
Expand Down
5 changes: 5 additions & 0 deletions scripts/admin/acl/create-group.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ print_usage()

hash turtle 2>/dev/null || { echo >&2 "turtle not on \$PATH. Need to set \$JENA_HOME. Aborting."; exit 1; }

urlencode() {
python -c 'import urllib, sys; print urllib.quote(sys.argv[1], sys.argv[2])' \
"$1" "$urlencode_safe"
}

args=()
while [[ $# -gt 0 ]]
do
Expand Down
1 change: 1 addition & 0 deletions scripts/create-container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ print_usage()
}

hash turtle 2>/dev/null || { echo >&2 "turtle not on \$PATH. Need to set \$JENA_HOME. Aborting."; exit 1; }

urlencode() {
python -c 'import urllib, sys; print urllib.quote(sys.argv[1], sys.argv[2])' \
"$1" "$urlencode_safe"
Expand Down
5 changes: 5 additions & 0 deletions scripts/create-item.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ print_usage()

hash turtle 2>/dev/null || { echo >&2 "turtle not on \$PATH. Need to set \$JENA_HOME. Aborting."; exit 1; }

urlencode() {
python -c 'import urllib, sys; print urllib.quote(sys.argv[1], sys.argv[2])' \
"$1" "$urlencode_safe"
}

args=()
while [[ $# -gt 0 ]]
do
Expand Down
5 changes: 5 additions & 0 deletions scripts/imports/create-file.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ print_usage()

hash curl 2>/dev/null || { echo >&2 "curl not on \$PATH. Aborting."; exit 1; }

urlencode() {
python -c 'import urllib, sys; print urllib.quote(sys.argv[1], sys.argv[2])' \
"$1" "$urlencode_safe"
}

args=()
while [[ $# -gt 0 ]]
do
Expand Down

0 comments on commit 8cdae35

Please sign in to comment.