Code Review
/
aaf
/
authz.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Clean LOCAL Dir based on VERSION
[aaf/authz.git]
/
auth
/
sample
/
bin
/
client.sh
diff --git
a/auth/sample/bin/client.sh
b/auth/sample/bin/client.sh
index
dbf0862
..
9e3b2fd
100755
(executable)
--- 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}
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
# Only initialize once, automatically...
if [ ! -e $LOCAL/${NS}.props ]; then