From ec73be70be92b98c877de8bf6ae6c8733bba33d7 Mon Sep 17 00:00:00 2001 From: Stephane Desneux Date: Thu, 6 Sep 2018 11:25:27 +0000 Subject: scripts/mkefi-agl.sh: fix cleanup This patch fixes the removal of the huge file /tmp/TMP-AGL-wic-image.wic Change-Id: I8858109dca62eb20d4bdabab3d7a593205a30ea6 Signed-off-by: Stephane Desneux --- scripts/mkefi-agl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/mkefi-agl.sh b/scripts/mkefi-agl.sh index 48a0af44d..c44ecedde 100755 --- a/scripts/mkefi-agl.sh +++ b/scripts/mkefi-agl.sh @@ -64,7 +64,7 @@ cleanup() { if [ -d "$TMPDIR" ]; then rm -rf "$TMPDIR" || error "Failed to remove $TMPDIR" fi - [ -f "$TMP_DIR/TMP-AGL-wic-image.wic" ] || rm -f $TMP_DIR/TMP-AGL-wic-image.wic + [ -f "$TMP_DIR/TMP-AGL-wic-image.wic" ] && rm -f $TMP_DIR/TMP-AGL-wic-image.wic } trap 'die "Signal Received, Aborting..."' HUP INT TERM -- cgit 1.2.3-korg