diff options
author | hellerda <hellerda@linux.vnet.ibm.com> | 2018-02-04 15:07:30 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-04 15:07:30 -0500 |
commit | 6498603b6f3929827cf99c43ac9f07e604e86a2e (patch) | |
tree | 2834f87aa9fdadf582e60efa64edeef310869e3d | |
parent | 2290dbff9e41bb60e407a96b6f212c53857ffd1b (diff) | |
parent | a58ac2fe59e3878821ae776d889f14e84edd6964 (diff) | |
download | sb-signing-utils-6498603b6f3929827cf99c43ac9f07e604e86a2e.tar.gz sb-signing-utils-6498603b6f3929827cf99c43ac9f07e604e86a2e.zip |
Merge pull request #22 from hellerda/fix-cache-cleanup
Fix cache cleanup when archive import is used
-rwxr-xr-x | crtSignedContainer.sh | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/crtSignedContainer.sh b/crtSignedContainer.sh index ac1c6f2..3875db7 100755 --- a/crtSignedContainer.sh +++ b/crtSignedContainer.sh @@ -843,15 +843,8 @@ fi # Cleanup # if [ $SB_KEEP_CACHE == false ]; then - echo "--> $P: Removing cache subdir: $T" - rm -rf "$T" - T="$(dirname "$T")" - - if rmdir "$T"; then - echo "--> $P: Removing cache dir: $T" - else - echo "--> $P: Not removing cache dir: $T" - fi + echo "--> $P: Removing cache dir: $TOPDIR" + rm -rf "$TOPDIR" fi exit $RC |