diff options
author | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2018-01-04 23:40:25 +0100 |
---|---|---|
committer | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2018-01-04 23:40:25 +0100 |
commit | 1a8b7603899f30f052ad123b7607b45a6d4c8772 (patch) | |
tree | 70323c3a7eee98289cc48c596e2a855c6045453b /scripts/sdks/agl/remove | |
parent | f2eecfb601acc6c67fb52bf2edda93505bc44da5 (diff) |
Improved and fixed local SDK tarball installation.
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
Diffstat (limited to 'scripts/sdks/agl/remove')
-rwxr-xr-x | scripts/sdks/agl/remove | 5 |
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 |