From: Stephane Desneux Date: Thu, 6 Sep 2018 11:25:27 +0000 (+0000) Subject: scripts/mkefi-agl.sh: fix cleanup X-Git-Tag: flounder_5.99.6~7 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=ec73be70be92b98c877de8bf6ae6c8733bba33d7;p=AGL%2Fmeta-agl.git 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 --- 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