mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
Simplify parsing of json using jq built-in features
Saves spawning multiple sed processes.
This commit is contained in:
parent
3daee46c3d
commit
4def3bf5c2
4
.github/workflows/installer-library.yml
vendored
4
.github/workflows/installer-library.yml
vendored
@ -95,8 +95,8 @@ jobs:
|
|||||||
name: Setup other versions
|
name: Setup other versions
|
||||||
id: cache-bust-setup
|
id: cache-bust-setup
|
||||||
run: |
|
run: |
|
||||||
pillow_version=$(jq ".default.pillow.version" Pipfile.lock | sed 's/=//g' | sed 's/"//g')
|
pillow_version=$(jq -r '.default.pillow.version | gsub("=";"")' Pipfile.lock)
|
||||||
lxml_version=$(jq ".default.lxml.version" Pipfile.lock | sed 's/=//g' | sed 's/"//g')
|
lxml_version=$(jq -r '.default.lxml.version | gsub("=";"")' Pipfile.lock)
|
||||||
|
|
||||||
echo "Pillow is ${pillow_version}"
|
echo "Pillow is ${pillow_version}"
|
||||||
echo "lxml is ${lxml_version}"
|
echo "lxml is ${lxml_version}"
|
||||||
|
@ -24,12 +24,12 @@ fi
|
|||||||
branch_name=$(git rev-parse --abbrev-ref HEAD)
|
branch_name=$(git rev-parse --abbrev-ref HEAD)
|
||||||
|
|
||||||
# Parse eithe Pipfile.lock or the .build-config.json
|
# Parse eithe Pipfile.lock or the .build-config.json
|
||||||
jbig2enc_version=$(jq ".jbig2enc.version" .build-config.json | sed 's/"//g')
|
jbig2enc_version=$(jq -r '.jbig2enc.version' .build-config.json)
|
||||||
qpdf_version=$(jq ".qpdf.version" .build-config.json | sed 's/"//g')
|
qpdf_version=$(jq -r '.qpdf.version' .build-config.json)
|
||||||
psycopg2_version=$(jq ".default.psycopg2.version" Pipfile.lock | sed 's/=//g' | sed 's/"//g')
|
psycopg2_version=$(jq -r '.default.psycopg2.version | gsub("=";"")' Pipfile.lock)
|
||||||
pikepdf_version=$(jq ".default.pikepdf.version" Pipfile.lock | sed 's/=//g' | sed 's/"//g')
|
pikepdf_version=$(jq -r '.default.pikepdf.version | gsub("=";"")' Pipfile.lock)
|
||||||
pillow_version=$(jq ".default.pillow.version" Pipfile.lock | sed 's/=//g' | sed 's/"//g')
|
pillow_version=$(jq -r '.default.pillow.version | gsub("=";"")' Pipfile.lock)
|
||||||
lxml_version=$(jq ".default.lxml.version" Pipfile.lock | sed 's/=//g' | sed 's/"//g')
|
lxml_version=$(jq -r '.default.lxml.version | gsub("=";"")' Pipfile.lock)
|
||||||
|
|
||||||
base_filename="$(basename -- "${1}")"
|
base_filename="$(basename -- "${1}")"
|
||||||
build_args_str=""
|
build_args_str=""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user