about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEnno Boland <g@s01.de>2016-10-21 14:14:08 +0200
committerGitHub <noreply@github.com>2016-10-21 14:14:08 +0200
commit1f54a8b4ce7e36bd914cf86626cde1d40d1c0c37 (patch)
treeba7d398caea868528ccefe21b375c3c509d2617c
parent24df16b0f709f5217405e603e2c304c54592a632 (diff)
parent7ff7f2ab912598206e6f7802a0430a00017221a4 (diff)
downloadrunit-void-1f54a8b4ce7e36bd914cf86626cde1d40d1c0c37.tar.gz
runit-void-1f54a8b4ce7e36bd914cf86626cde1d40d1c0c37.tar.xz
runit-void-1f54a8b4ce7e36bd914cf86626cde1d40d1c0c37.zip
Merge pull request #57 from suiginsoft/master
Make crypt.awk work with other awk(1) variants.
-rw-r--r--crypt.awk2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypt.awk b/crypt.awk
index d533ab8..2d2c965 100644
--- a/crypt.awk
+++ b/crypt.awk
@@ -3,7 +3,7 @@ NF>4 { print "a valid crypttab has max 4 cols not " NF >"/dev/stderr"; next }
 {
     # decode the src variants
     split($2, o_src, "=")
-    if (o_src[1] == "UUID") "blkid -t " $2 " -l -o device" |& getline src;
+    if (o_src[1] == "UUID") ("blkid -l -o device -t " $2) | getline src;
     else src=o_src[1];
 
     # no password or none is given, ask fo it