remove newline char after username

This commit is contained in:
Alexander Bocken 2020-10-28 16:28:20 +01:00
parent 937fdd50a7
commit f250465999
Signed by: Alexander
GPG Key ID: 1D237BE83F9B05E8

View File

@ -45,7 +45,7 @@ while [ "$DONE" -eq 0 ] ; do
if [[ $typeit -eq 0 ]]; then if [[ $typeit -eq 0 ]]; then
pass show -c "$SELECTION" > $HOME/.cache/passstring pass show -c "$SELECTION" > $HOME/.cache/passstring
pass show "$SELECTION" | awk 'NR == 2 {print $NF}' | xclip -i -selection primary pass show "$SELECTION" | awk 'NR == 2 {print $NF}' | xclip -r -i -selection primary
sed -e "s/^/\"/" -e "s/$/\"/" $HOME/.cache/passstring | xargs -r notify-send "Password" -t 4000 sed -e "s/^/\"/" -e "s/$/\"/" $HOME/.cache/passstring | xargs -r notify-send "Password" -t 4000
sleep 45 sleep 45
if [ -f $HOME/.cache/passstring ]; then if [ -f $HOME/.cache/passstring ]; then