From 1a8b7603899f30f052ad123b7607b45a6d4c8772 Mon Sep 17 00:00:00 2001 From: Sebastien Douheret Date: Thu, 4 Jan 2018 23:40:25 +0100 Subject: Improved and fixed local SDK tarball installation. Signed-off-by: Sebastien Douheret --- scripts/sdks/agl/remove | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'scripts/sdks/agl/remove') diff --git a/scripts/sdks/agl/remove b/scripts/sdks/agl/remove index d0f30b1..ec98f72 100755 --- a/scripts/sdks/agl/remove +++ b/scripts/sdks/agl/remove @@ -30,3 +30,8 @@ if [ ! -d "${1}" ]; then fi rm -rf "${1}" && echo "SDK successfully removed." + +# Potentially remove parent directory when it is the latest SDK for this version +rmdir "$(dirname ${1})" + +exit 0 -- cgit 1.2.3-korg