summaryrefslogtreecommitdiff
path: root/vsvs-extract
diff options
context:
space:
mode:
authorAleksey Veresov <aleksey@veresov.pro>2020-12-06 23:10:49 +0300
committerAleksey Veresov <aleksey@veresov.pro>2020-12-06 23:10:49 +0300
commit6e1ad1537a19d6732038315c028ff75d6516458f (patch)
tree3617ced834a0291029874c427babbb32a49280ba /vsvs-extract
parent2282ef61b60c1ce90ce7ac056781bfba0d7bdfec (diff)
downloadvsvs-6e1ad1537a19d6732038315c028ff75d6516458f.tar
vsvs-6e1ad1537a19d6732038315c028ff75d6516458f.tar.xz
vsvs-6e1ad1537a19d6732038315c028ff75d6516458f.zip
.
Diffstat (limited to 'vsvs-extract')
-rw-r--r--vsvs-extract6
1 files changed, 4 insertions, 2 deletions
diff --git a/vsvs-extract b/vsvs-extract
index a45d231..3db8bdc 100644
--- a/vsvs-extract
+++ b/vsvs-extract
@@ -1,6 +1,8 @@
#!/bin/bash
-after () { test -z "${2##*$1*}" && echo -n "${2#*$1}" }
-vsvs-locate "$2" | { read path; read vsvspath; } || exit 1
+after () { test -z "${2##*$1*}" && echo -n "${2#*$1}"; }
+res="$(vsvs-locate "$2" || exit 1)"
+path="${res%% *}"
+vsvspath=$(after " " "$res")
if test -f "$path"
then
lockfile="$base/proc/$proc/lock/"