Commit bcf124d6a2830c7f15d0ad6743eaa65ef4977ee9

Authored by Tim Gover
1 parent 8b7ad436

rpi-eeprom-digest: Fix cleanup of TMP_DIR

Check for a directory instead of a file.
Showing 1 changed file with 1 additions and 1 deletions
tools/rpi-eeprom-digest
@@ -16,7 +16,7 @@ die() { @@ -16,7 +16,7 @@ die() {
16 16
17 TMP_DIR="" 17 TMP_DIR=""
18 cleanup() { 18 cleanup() {
19 - if [ -f "${TMP_DIR}" ]; then 19 + if [ -d "${TMP_DIR}" ]; then
20 rm -rf "${TMP_DIR}" 20 rm -rf "${TMP_DIR}"
21 fi 21 fi
22 } 22 }