Consistent quote marks

This commit is contained in:
He4eT 2024-07-12 21:19:23 +02:00
commit f65bb702c8
2 changed files with 4 additions and 4 deletions

View file

@ -20,13 +20,13 @@ Copy the script to any directory included in your $PATH.
``` ```
$ bwc github $ bwc github
[sudo] password for $USER: [sudo] password for $USER:
Using the existing session key from "/home/$USER/.bitwarden_session". Using the existing session key from '/home/$USER/.bitwarden_session'.
Searching for 'github'... Searching for 'github'...
abcdefgh-ijkl-mnop-qrst-uvwxyz123456 abcdefgh-ijkl-mnop-qrst-uvwxyz123456
github.com github.com
Username "Username" copied to clipboard. Username 'Username' copied to clipboard.
Press any key to copy the password... Press any key to copy the password...
Password copied to clipboard. Password copied to clipboard.
``` ```

4
bwc
View file

@ -28,7 +28,7 @@ process_item () {
local username="$(jq -r ".login.username" <<< $login)" local username="$(jq -r ".login.username" <<< $login)"
echo $username | xclip -sel clip echo $username | xclip -sel clip
echo "Username \"$username\" copied to clipboard." echo "Username '$username' copied to clipboard."
read -s -k $'?Press any key to copy the password...\n' read -s -k $'?Press any key to copy the password...\n'
jq -r ".login.password" <<< $login | xclip -sel clip jq -r ".login.password" <<< $login | xclip -sel clip
@ -61,7 +61,7 @@ main() {
sessionkey=$(bw unlock --raw) sessionkey=$(bw unlock --raw)
save_sessionkey $sessionkey save_sessionkey $sessionkey
else else
echo "Using the existing session key from \"$sessionfile\"." echo "Using the existing session key from '$sessionfile'."
fi fi
# Get a list of matching items # Get a list of matching items