summaryrefslogtreecommitdiff
path: root/vsvs-get
diff options
context:
space:
mode:
authorAleksey Veresov <aleksey@veresov.pro>2020-12-05 11:35:52 +0300
committerAleksey Veresov <aleksey@veresov.pro>2020-12-05 11:35:52 +0300
commitf229b632cbc31c5efad109589cd36b07bcd48817 (patch)
tree92da049922bddf00190ffa26f883e637a9469893 /vsvs-get
parent4fcb7a47787e26b54ef8b786c7b07cee3fd49819 (diff)
downloadvsvs-f229b632cbc31c5efad109589cd36b07bcd48817.tar
vsvs-f229b632cbc31c5efad109589cd36b07bcd48817.tar.xz
vsvs-f229b632cbc31c5efad109589cd36b07bcd48817.zip
.
Diffstat (limited to 'vsvs-get')
-rwxr-xr-x[-rw-r--r--]vsvs-get25
1 files changed, 1 insertions, 24 deletions
diff --git a/vsvs-get b/vsvs-get
index e7ab391..b3ab53f 100644..100755
--- a/vsvs-get
+++ b/vsvs-get
@@ -1,25 +1,2 @@
#!/bin/bash
-res=""
-met=false
-while IFS="" read str
-do
- if [ -z "${str##* *}" ]
- then
- key="${str%% *}"
- val="${str#* }"
- else
- key="${str}"
- val=""
- fi
- if [ -z "${key}" ] && [ $met == true ]
- then
- res="${res}"$'\n'"${val}"
- elif [ "${key}" == "$1" ]
- then
- met=true
- res="${val}"
- else
- met=false
- fi
-done
-echo -n "${res}"
+vsvs "if [ \"\${key}\" == \"$1\" ]; then res=\"\${buf}\"; fi"