commit 6f6e326b595d05867a539038266baf63d522b727 parent 752a2f5617d6b6ccf9758a19372b27fadfe6c65d Author: Renev Pavel <an2qzavok@gmail.com> Date: Thu, 11 May 2023 23:27:57 +0000 wdb2tl: sync Diffstat:
M | rc/wdb2tl | | | 9 | ++++++--- |
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/rc/wdb2tl b/rc/wdb2tl @@ -21,13 +21,14 @@ fn wprint1 { field=$1 file=$"dir/$"field fail $"file - echo -n $"field^' \' - read $"file + value=`{read $"file} + echo $"field^' \'^$"value + # read $"file } fn wprints { field=$1 - file=$"dir/$"field + file=$"dir^'/'^$"field fail $"file echo $"field awk '{printf("\t\\%s\n", $0)}' $"file @@ -40,6 +41,8 @@ fn wtest { echo ok $file } +test -n $"uuid || {echo 'no uuid'; exit 'no uuid'} + wprints name wprint1 tags wprint1 type