This commit is contained in:
parent
dd8d28d7e0
commit
db73bca422
|
@ -1,5 +1,5 @@
|
|||
#!/bin/bash
|
||||
# openrefine-bash-curl.sh, Felix Lohmeier, v0.4, 2020-07-04
|
||||
# openrefine-bash-curl.sh, Felix Lohmeier, v0.4.1, 2020-07-04
|
||||
# How to control OpenRefine 3.3+ with cURL (and jq) in Bash scripts
|
||||
# https://gist.github.com/felixlohmeier/d76bd27fbc4b8ab6d683822cdf61f81d
|
||||
# tested on Linux (Fedora 33), needs to be adapted to work on macOS
|
||||
|
@ -188,7 +188,7 @@ if curl -fsS --write-out "%{redirect_url}\n" \
|
|||
--form project-file="@${input}" \
|
||||
--form project-name="${p}" \
|
||||
--form format="text/line-based/*sv" \
|
||||
--form options='{"separator": "\t"}' \
|
||||
--form options='{"separator": ","}' \
|
||||
"${endpoint}/command/core/create-project-from-upload?csrf_token=$(csrf)" \
|
||||
> "${workspace}/${filename}.id"
|
||||
then
|
||||
|
|
Loading…
Reference in New Issue