Skip to content

Commit 4c5e40b

Browse files
Mayeublaggacao
authored andcommitted
fix: nomad didn't create dir
1 parent f17c637 commit 4c5e40b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/std/fwlib/blockTypes/nomad.nix

+2-1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ in
4747
declare job_path="$PRJ_DATA_HOME/${job_path}"
4848
render() {
4949
echo "Rendering to $job_path..."
50+
mkdir -p "$PRJ_DATA_HOME/${dirOf fragmentRelPath}"
5051
rm -rf "$job_path"
5152
ln -s "${jobWithGitRevision target}" "$job_path"
5253
if status=$(nomad validate "$job_path"); then
@@ -69,7 +70,7 @@ in
6970
render
7071
if ! plan_results=$(nomad plan -force-color "$job_path"); then
7172
echo "$plan_results"
72-
run() { echo "$plan_results" | grep 'nomad job run -check-index'; }
73+
run() { eval "$(echo "$plan_results" | grep 'nomad job run -check-index')"; }
7374
${askUserToProceedSnippet "deploy" "run"}
7475
else
7576
echo "Job hasn't changed since last deployment, nothing to deploy"

0 commit comments

Comments
 (0)