Skip to content

Commit

Permalink
authenticate: replace xclip whith xsel
Browse files Browse the repository at this point in the history
xclip does not close stdout. This broke the call of

	eval `./authenticate`

See astrand/xclip#20 for details.
  • Loading branch information
neosimsim committed Jun 5, 2019
1 parent 1ebc804 commit 73793e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion misc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ E.g. to fetch all elements, you can run
./authorize elements

### Clipboard
If `xclip` is present on the system, `./authenticate` will copy the JWT token to the
If `xsel` is present on the system, `./authenticate` will copy the JWT token to the
clipboard.

## Generate TLS key pairs
Expand Down
4 changes: 2 additions & 2 deletions misc/authenticate
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ fi
echo export "'"TOKEN=$token"'"
echo export "'"VEOURL=$url"'"

if which xclip >/dev/null 2>&1
if which xsel >/dev/null 2>/dev/null
then
echo $TOKEN | xclip -selection clipboard
echo -n "$TOKEN" | xsel -i -b
fi

0 comments on commit 73793e7

Please sign in to comment.