aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephane Desneux <stephane.desneux@iot.bzh>2018-09-06 11:25:27 +0000
committerStephane Desneux <stephane.desneux@iot.bzh>2018-09-06 11:25:27 +0000
commitec73be70be92b98c877de8bf6ae6c8733bba33d7 (patch)
treefe3e6494a45ea41e3019a7baf798eb5b940f24c2
parentdc09f4bce2c90be22551f815948909335e17c576 (diff)
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 <stephane.desneux@iot.bzh>
-rwxr-xr-xscripts/mkefi-agl.sh2
1 files changed, 1 insertions, 1 deletions
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