summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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