diff options
| author | Dave Heller <hellerda@linux.vnet.ibm.com> | 2018-01-28 17:54:19 -0500 |
|---|---|---|
| committer | Dave Heller <hellerda@linux.vnet.ibm.com> | 2018-01-28 17:54:19 -0500 |
| commit | a58ac2fe59e3878821ae776d889f14e84edd6964 (patch) | |
| tree | 2834f87aa9fdadf582e60efa64edeef310869e3d | |
| parent | 2290dbff9e41bb60e407a96b6f212c53857ffd1b (diff) | |
| download | sb-signing-utils-a58ac2fe59e3878821ae776d889f14e84edd6964.tar.gz sb-signing-utils-a58ac2fe59e3878821ae776d889f14e84edd6964.zip | |
Fix cache cleanup when archive import is used
Signed-off-by: Dave Heller <hellerda@linux.vnet.ibm.com>
| -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 |

