summaryrefslogtreecommitdiffstats
path: root/auth/sample/bin/client.sh
diff options
context:
space:
mode:
authorInstrumental <jonathan.gathman@att.com>2019-04-30 10:19:21 -0500
committerInstrumental <jonathan.gathman@att.com>2019-04-30 10:52:03 -0500
commitf64f482462b697e06a47ad55aa5447dc829ce727 (patch)
treec7f107b2791a91347cf8a91a61ebfdc95fcc6cdf /auth/sample/bin/client.sh
parent2e76b4d7522a1fb2bf571eb8abcbcff4e97e06fc (diff)
Clean LOCAL Dir based on VERSION
Issue-ID: AAF-821 Change-Id: I5fde81467d46130d3a39de415604c7702fecbaa8 Signed-off-by: Instrumental <jonathan.gathman@att.com>
Diffstat (limited to 'auth/sample/bin/client.sh')
-rwxr-xr-xauth/sample/bin/client.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/auth/sample/bin/client.sh b/auth/sample/bin/client.sh
index dbf08622..9e3b2fd7 100755
--- a/auth/sample/bin/client.sh
+++ b/auth/sample/bin/client.sh
@@ -114,7 +114,13 @@ if [ ! -e "$DOT_AAF/keyfile" ]; then
fi
echo "cat SSO"
cat ${SSO}
-echo "dog"
+
+# Should we clean up?
+if [ "${VERSION}" != "$(cat ${LOCAL}/VERSION)" ]; then
+ echo "Clean up directory ${LOCAL}"
+ rm -Rf ${LOCAL}/*
+fi
+echo "${VERSION}" > $LOCAL/VERSION
# Only initialize once, automatically...
if [ ! -e $LOCAL/${NS}.props ]; then