Skip to content

Commit c6b8ed4

Browse files
authored
chore: allow changing default output dir for unstructured-get-json.sh (#3973)
1 parent 19fc1fc commit c6b8ed4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/user/unstructured-get-json.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ fi
5050

5151
IMAGE_BLOCK_TYPES=${IMAGE_BLOCK_TYPES:-'"image", "table"'}
5252
API_KEY=${UNST_API_KEY:-""}
53-
TMP_DOWNLOADS_DIR="$HOME/tmp/unst-downloads"
54-
TMP_OUTPUTS_DIR="$HOME/tmp/unst-outputs"
53+
TMP_DOWNLOADS_DIR=${UNST_SCRIPT_DOWNLOADS_DIR:-"$HOME/tmp/unst-downloads"}
54+
TMP_OUTPUTS_DIR=${UNST_SCRIPT_JSON_OUTPUTS_DIR:-"$HOME/tmp/unst-outputs"}
5555
# only applicable if writing .json output files to S3 when using --s3, e.g. s3://bucket-name/path/
5656
S3_URI_PREFIX=${UNST_S3_JSON_OUTPUT_URI:-""}
5757
# e.g. us-east-2, used to provide http links for above location

0 commit comments

Comments
 (0)