summaryrefslogtreecommitdiffstats
path: root/xcpw
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2013-05-27 16:55:12 +0200
committerFlorian Pritz <bluewind@xinu.at>2013-05-27 16:55:12 +0200
commit03f19c98e3f8476c5d57dda089033a4973b415d6 (patch)
treed086c2125c866a0ae841d492007f1097186ec69d /xcpw
parent7d08493b258c397646ba0fe06bcb8e48a32a9205 (diff)
downloadbin-03f19c98e3f8476c5d57dda089033a4973b415d6.tar.gz
bin-03f19c98e3f8476c5d57dda089033a4973b415d6.tar.xz
xcpw: only use first matching line
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'xcpw')
-rwxr-xr-xxcpw2
1 files changed, 1 insertions, 1 deletions
diff --git a/xcpw b/xcpw
index d737c0e..cf7fc4a 100755
--- a/xcpw
+++ b/xcpw
@@ -3,4 +3,4 @@
# get password, clean it up and copy to clipboard
#
-getpw "$@" | cut -d\ -f1 | tr -d "\n" | xclip
+getpw "$@" | head -n 1 | cut -d\ -f1 | tr -d "\n" | xclip