From: Sangyoon Jang Date: Wed, 16 Sep 2020 08:22:23 +0000 (+0900) Subject: Remove directory using rm -r X-Git-Tag: submit/tizen/20201006.000256~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=63f4771366b8069978b1eeedbf8ee630ff28b844;p=platform%2Fcore%2Fappfw%2Fpkgmgr-tool.git Remove directory using rm -r rmdir can be fail if there are files under shared/data. Change-Id: If6a67d4a1c019ebc0c034fbaad4c33f813d95a5e Signed-off-by: Sangyoon Jang --- diff --git a/data/updates/upgrade_to_30005.sh.in b/data/updates/upgrade_to_30005.sh.in index 287510f..dd71348 100644 --- a/data/updates/upgrade_to_30005.sh.in +++ b/data/updates/upgrade_to_30005.sh.in @@ -161,7 +161,7 @@ function remove_shareddata() { echo "#remove shareddata" for shared in `find $TZ_SYS_RW_APP -mindepth 2 -maxdepth 2 -name shared` do - find $shared -mindepth 1 -maxdepth 1 -name data -exec rmdir {} \; + find $shared -mindepth 1 -maxdepth 1 -name data -exec rm -r {} \; done }