Skip to content
Snippets Groups Projects
Commit 3077012c authored by Jean-Paul Calderone's avatar Jean-Paul Calderone
Browse files

try to catch and report morph error

parent 6866f1ca
No related branches found
No related tags found
No related merge requests found
......@@ -21,8 +21,13 @@ OUTPUT=$1
[ -e scan-target ] && rm -v scan-target
nix-shell --run '
set -x
object=$(morph build morph/grid/testing/grid.nix 2>&1 | tail -n 1)
if morph_result=$(morph build morph/grid/testing/grid.nix 2>&1); then
object=$(echo "$morph_result" | tail -n 1)
ln -s "$object" scan-target
else
echo "$morph_result"
exit 1
fi
'
nix-shell -p vulnix --run 'vulnix ./scan-target/' | tee "$OUTPUT"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment