summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2021-01-05 06:11:48 +0100
committerErich Eckner <git@eckner.net>2021-01-05 06:11:48 +0100
commit5795ee2ce5087ce091c91ed3c54dc82cbcd5b3c6 (patch)
treeeb7840390f4c1e673bef356f5491eeaf9bdeb7ab
parent583e838b5a535a866b0c0b9df7a785ab6f66824e (diff)
downloadupdate-all-5795ee2ce5087ce091c91ed3c54dc82cbcd5b3c6.tar.xz
password-to-clipboard new
-rw-r--r--Makefile1
-rwxr-xr-xpassword-to-clipboard6
2 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index c8056d2..75958c3 100644
--- a/Makefile
+++ b/Makefile
@@ -34,6 +34,7 @@ all: update-all update-me
.PHONY: install dist clean
install: all
+ install -D -m0755 password-to-clipboard $(DESTDIR)$(BINDIR)/password-to-clipboard
install -D -m0755 update-all $(DESTDIR)$(BINDIR)/update-all
install -D -m0755 update-me $(DESTDIR)$(BINDIR)/update-me
install -D -m0644 update-all.conf $(DESTDIR)$(ETCDIR)/update-all.conf
diff --git a/password-to-clipboard b/password-to-clipboard
new file mode 100755
index 0000000..0a52c72
--- /dev/null
+++ b/password-to-clipboard
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+stty_orig=$(stty -g)
+stty -echo
+xclip
+stty $stty_orig