mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-01-09 15:06:00 +01:00
Simplify parsing of json using jq built-in features
Saves spawning multiple sed processes.
This commit is contained in:
parent
3daee46c3d
commit
4def3bf5c2
2 changed files with 8 additions and 8 deletions
4
.github/workflows/installer-library.yml
vendored
4
.github/workflows/installer-library.yml
vendored
|
|
@ -95,8 +95,8 @@ jobs:
|
|||
name: Setup other versions
|
||||
id: cache-bust-setup
|
||||
run: |
|
||||
pillow_version=$(jq ".default.pillow.version" Pipfile.lock | sed 's/=//g' | sed 's/"//g')
|
||||
lxml_version=$(jq ".default.lxml.version" Pipfile.lock | sed 's/=//g' | sed 's/"//g')
|
||||
pillow_version=$(jq -r '.default.pillow.version | gsub("=";"")' Pipfile.lock)
|
||||
lxml_version=$(jq -r '.default.lxml.version | gsub("=";"")' Pipfile.lock)
|
||||
|
||||
echo "Pillow is ${pillow_version}"
|
||||
echo "lxml is ${lxml_version}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue