citadel

My dotfiles, scripts and nix configs
git clone git://jb55.com/citadel
Log | Files | Refs | README | LICENSE

commit bed866c82e47f04573643726926e557e22943adc
parent 70381f739485c0ee9dfb1d530bfde320ee595411
Author: William Casarin <jb55@jb55.com>
Date:   Mon, 24 May 2021 22:57:29 -0700

fuzz-compile: don't clobber build-result

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Mbin/fuzz-compile | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/bin/fuzz-compile b/bin/fuzz-compile @@ -2,6 +2,9 @@ set -eou pipefail +tmp=$(mktemp) +trap "rm -f $tmp" EXIT + cmd="" if [ -f package.json ] && [ ! -f Makefile ] @@ -17,6 +20,6 @@ else cmd="make -j $target" fi -fullcmd="$cmd 2>&1| tee .build-result" +fullcmd="$cmd 2>&1| tee $tmp; mv $tmp .build-result" <<<"$fullcmd" tee .buildcmd