Skip to content

Commit

Permalink
Added missing urlencode function
Browse files Browse the repository at this point in the history
  • Loading branch information
namedgraph committed Oct 21, 2023
1 parent f1d7631 commit eb927ff
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/imports/create-csv-import.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,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.parse, sys; print(urllib.parse.quote(sys.argv[1], sys.argv[2]))' \
"$1" "$urlencode_safe"
}

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

0 comments on commit eb927ff

Please sign in to comment.