mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-11-23 00:13:02 +03:00
indexers: fix bug when creating directory for log
This commit is contained in:
parent
9ea5cc8647
commit
b3102cb87e
@ -25,9 +25,10 @@
|
||||
translate $jobJson $targetDir &> $TMPDIR/log \
|
||||
|| (
|
||||
echo "Failed to translate $1"
|
||||
mkdir -p ./translation-errors
|
||||
jobId=$(jq '.id' -c -r <(echo "$jobJson"))
|
||||
cp $TMPDIR/log ./translation-errors/$jobId.log
|
||||
logFile="./translation-errors/$jobId.log"
|
||||
mkdir -p $(dirname "$logFile")
|
||||
cp $TMPDIR/log "$logFile"
|
||||
)
|
||||
'';
|
||||
in
|
||||
|
Loading…
Reference in New Issue
Block a user