If xclip is installed, tries to place the url into your clipboard.
This commit is contained in:
parent
a7ac37b77c
commit
a6c8fd9277
@ -28,6 +28,10 @@ get_oauth_token() {
|
||||
echo
|
||||
echo "${url}"
|
||||
echo
|
||||
if command -v xclip &> /dev/null ; then
|
||||
echo "${url}" | xclip -selection clipboard -d "${DISPLAY:-:0}" 2> /dev/null &&
|
||||
echo "For convenience the url has been copied to your clipboard."
|
||||
fi
|
||||
read -er oauth_token
|
||||
echo "oauth_token=\"${oauth_token}\"" >> "${configPath}/${configFile}"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user