If xclip is installed, tries to place the url into your clipboard.

This commit is contained in:
stormdragon2976 2023-01-28 18:12:39 -05:00
parent a7ac37b77c
commit a6c8fd9277

View File

@ -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}"
}