Skip to content

Commit

Permalink
I guess you can't read a file into memory, then write out to it.
Browse files Browse the repository at this point in the history
  • Loading branch information
bdklahn committed Oct 8, 2024
1 parent cf1e8cf commit 3cae056
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sciduct.scif
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
%appinstall sciduct
BUILD_DATE=$(date -u +"%Y-%m-%dT%H:%M:%S.%NZ")
mv /config.json config.json.in &&
jq --arg build_date $BUILD_DATE '. + {build_date: $build_date}' config.json.in > config.json &&
[ "$VERSION" = "0.0.0" ] || jq -r ".version=\"$VERSION\"" config.json > config.json
jq --arg build_date $BUILD_DATE '. + {build_date: $build_date}' config.json.in > config.json
cp config.json /tmp/config.json &&
[ "$VERSION" = "0.0.0" ] || jq -r ".version=\"$VERSION\"" /tmp/config.json > config.json

echo "trying to validate the jobservice config against . . ."
echo "https://github.com/NSSAC/sciduct_jobservice/blob/main/src/jobservice/schema/image_configuration.json"
Expand Down

0 comments on commit 3cae056

Please sign in to comment.