aboutsummaryrefslogtreecommitdiff
path: root/bin/xrq.awk
diff options
context:
space:
mode:
Diffstat (limited to 'bin/xrq.awk')
-rw-r--r--bin/xrq.awk6
1 files changed, 2 insertions, 4 deletions
diff --git a/bin/xrq.awk b/bin/xrq.awk
index 62253bdb..ffd5f124 100644
--- a/bin/xrq.awk
+++ b/bin/xrq.awk
@@ -17,14 +17,12 @@ BEGIN {
# Run `xrdb -query` and search for instances of the requested resource
xrdb = "xrdb -query"
found = 0
- while (xrdb | getline) {
- for (i in ARGV) {
+ while (xrdb | getline)
+ for (i in ARGV)
if ($1 == ARGV[i]) {
found = 1
print $2
}
- }
- }
close(xrdb)
# Exit successfully if we found at least one result