aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/sdks/agl/remove
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/sdks/agl/remove')
-rwxr-xr-xscripts/sdks/agl/remove5
1 files changed, 5 insertions, 0 deletions
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