Improved and fixed local SDK tarball installation.
[src/xds/xds-server.git] / scripts / sdks / agl / remove
index d0f30b1..ec98f72 100755 (executable)
@@ -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