From 006b3d71b59de93b5b227b21aa0de8032b454257 Mon Sep 17 00:00:00 2001 From: Andrea Manzi Date: Fri, 11 Apr 2014 12:50:39 +0000 Subject: [PATCH] fix git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/distributions/smartgears-distribution@94764 82a268e6-3cf1-43bd-a215-b396298e98cf --- distro/contents/install | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/distro/contents/install b/distro/contents/install index 5d552ce..ae342ba 100755 --- a/distro/contents/install +++ b/distro/contents/install @@ -134,7 +134,11 @@ if [ -f $shared/$applist ]; then echo -e "\nuninstalling existing apps \c" while read line; do if [ -z "$dryrun" ]; then - rm $apps/$line + rm $apps/$line + folder=${line:0:-4} + if [ ! -z "$folder" ]; then + rm -rf $apps/$folder + fi fi echo -n "." sleep .01