We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f17c637 commit 4c5e40bCopy full SHA for 4c5e40b
src/std/fwlib/blockTypes/nomad.nix
@@ -47,6 +47,7 @@ in
47
declare job_path="$PRJ_DATA_HOME/${job_path}"
48
render() {
49
echo "Rendering to $job_path..."
50
+ mkdir -p "$PRJ_DATA_HOME/${dirOf fragmentRelPath}"
51
rm -rf "$job_path"
52
ln -s "${jobWithGitRevision target}" "$job_path"
53
if status=$(nomad validate "$job_path"); then
@@ -69,7 +70,7 @@ in
69
70
render
71
if ! plan_results=$(nomad plan -force-color "$job_path"); then
72
echo "$plan_results"
- run() { echo "$plan_results" | grep 'nomad job run -check-index'; }
73
+ run() { eval "$(echo "$plan_results" | grep 'nomad job run -check-index')"; }
74
${askUserToProceedSnippet "deploy" "run"}
75
else
76
echo "Job hasn't changed since last deployment, nothing to deploy"
0 commit comments