diff options
author | Oliver O'Halloran <oohall@gmail.com> | 2019-11-13 16:19:55 +1100 |
---|---|---|
committer | Oliver O'Halloran <oohall@gmail.com> | 2019-11-14 16:10:11 +1100 |
commit | 7fddf42c4df57e29e109aca011d85dd823a024bf (patch) | |
tree | f4705569454a659bc517dd636a4b819f62d27aa0 | |
parent | d807288dd1e87c5cddde3286d6943722045619d5 (diff) | |
download | skiboot-7fddf42c4df57e29e109aca011d85dd823a024bf.zip skiboot-7fddf42c4df57e29e109aca011d85dd823a024bf.tar.gz skiboot-7fddf42c4df57e29e109aca011d85dd823a024bf.tar.bz2 |
hdata/test: Remove all temp files
mktemp generates a random file name and creates a blank file with that
name in /tmp. dtdiff_wrap.sh doesn't remove the blank file, or the
re-parsed DTB file so you end up with a lot of them in /tmp.
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
-rwxr-xr-x | hdata/test/dtdiff_wrap.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hdata/test/dtdiff_wrap.sh b/hdata/test/dtdiff_wrap.sh index e746e25..a2c58fa 100755 --- a/hdata/test/dtdiff_wrap.sh +++ b/hdata/test/dtdiff_wrap.sh @@ -12,5 +12,5 @@ cp /dev/stdin $T.dtb dtc -I dts -O dtb $1 > $T.orig.dtb dtdiff $T.orig.dtb $T.dtb R=$? -if [ $R == 0 ]; then rm -f $T.dtb; fi +if [ $R == 0 ]; then rm -f $T $T.orig.dtb $T.dtb; fi exit $R |