summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2009-07-17 00:17:10 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-06-26 00:30:11 -0600
commit54ce9d875ee17fa27c826ed085f9f5357dd8e8cc (patch)
tree63417711114c31b880c9992d89994a2d0eae115c
parent582f21486665f202646954f3c37aa9a3d60f61b0 (diff)
still not fully functional, but I was able to succesfully commit the current directory
-rw-r--r--src/rvs-core/lib/rvsdb.sh27
1 files changed, 14 insertions, 13 deletions
diff --git a/src/rvs-core/lib/rvsdb.sh b/src/rvs-core/lib/rvsdb.sh
index a02304b..01f9e0d 100644
--- a/src/rvs-core/lib/rvsdb.sh
+++ b/src/rvs-core/lib/rvsdb.sh
@@ -60,19 +60,20 @@ logwrite() {
var="$2"
val="$3"
- #lines=`_find "$log" '1' "$var"`
- #if [ "$lines" = '' ]; then
- if [ "`lograw "$log" | grep "^$var:"`" == '' ]; then
- # no exiswhereting occurances
- echo "$var:$val" >> "$log"
- else
- # found others
- # escape slashes
- var=`echo "$var" | sed 's:/:\\\\/:g'`
- val=`echo "$val" | sed 's:/:\\\\/:g'`
- sed -i "s/^$var:.*$/$var:$val/" "$log"
- #lograw "$log" | ??????
- fi
+# #lines=`_find "$log" '1' "$var"`
+# #if [ "$lines" = '' ]; then
+# if [ "`lograw "$log" | grep "^$var:"`" == '' ]; then
+# # no exiswhereting occurances
+# echo "$var:$val" >> "$log"
+# else
+# # found others
+# # escape slashes
+# var=`echo "$var" | sed 's:/:\\\\/:g'`
+# val=`echo "$val" | sed 's:/:\\\\/:g'`
+# sed -i "s/^$var:.*$/$var:$val/" "$log"
+# #lograw "$log" | ??????
+# fi
+ echo "$var:$val" >> $log
}
# logfind LOG VAL