File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 121121query_id=$( uuidgen | tr ' [:upper:]' ' [:lower:]' )
122122
123123# Add the CONSTRUCT query to the item using fragment identifier
124- # TO-DO: fix ambigous add-construct.sh script names
125- " $( dirname " $0 " ) /../add-construct.sh" \
124+ add-construct.sh \
126125 -b " $base " \
127126 -f " $cert_pem_file " \
128127 -p " $cert_password " \
@@ -148,10 +147,7 @@ add-file.sh \
148147
149148# Calculate file URI from SHA1 hash
150149sha1sum=$( shasum -a 1 " $csv_file " | awk ' {print $1}' )
151- file_uri=" ${base} uploads/${sha1sum} "
152-
153- # Generate import ID for fragment identifier
154- import_id=$( uuidgen | tr ' [:upper:]' ' [:lower:]' )
150+ file=" ${base} uploads/${sha1sum} "
155151
156152# Add the import metadata to the import item using fragment identifier
157153add-csv-import.sh \
@@ -160,9 +156,8 @@ add-csv-import.sh \
160156 -p " $cert_password " \
161157 --proxy " $proxy " \
162158 --title " $title " \
163- --uri " #${import_id} " \
164159 --query " $query " \
165- --file " $file_uri " \
160+ --file " $file " \
166161 --delimiter " $delimiter " \
167162 " $target "
168163
Original file line number Diff line number Diff line change @@ -125,8 +125,7 @@ if [ -n "$query_file" ] ; then
125125 query_id=$( uuidgen | tr ' [:upper:]' ' [:lower:]' )
126126
127127 # Add the CONSTRUCT query to the item using fragment identifier
128- # TO-DO: fix ambigous add-construct.sh script names
129- " $( dirname " $0 " ) /../add-construct.sh" \
128+ add-construct.sh \
130129 -b " $base " \
131130 -f " $cert_pem_file " \
132131 -p " $cert_password " \
You can’t perform that action at this time.
0 commit comments