X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=auth%2Fsample%2Fbin%2Fclient.sh;h=9e3b2fd7ee143c5c1c79e1b5b42e6f261b5cdc10;hb=f64f482462b697e06a47ad55aa5447dc829ce727;hp=dbf0862264d610a4765f72cc6246d579ea19a9af;hpb=2e76b4d7522a1fb2bf571eb8abcbcff4e97e06fc;p=aaf%2Fauthz.git 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