use single echo -n instead of tr

This commit is contained in:
Rasmus Steinke 2015-07-25 13:43:29 +02:00
parent 173c012e6c
commit 8ed0d8584b

View File

@ -81,7 +81,7 @@ ${open_url}: Open URL | ${copy_name}: Copy Username | ${copy_pass}: Copy Passwor
xdotool_type "${stuff[${USERNAME_field}]}" xdotool_type "${stuff[${USERNAME_field}]}"
exit exit
elif [[ $rofi_exit -eq 12 ]]; then elif [[ $rofi_exit -eq 12 ]]; then
echo "${password}" | tr -d '\n' | xdotool type --clearmodifiers --file - echo -n "${password}" | xdotool type --clearmodifiers --file -
exit exit
elif [[ $rofi_exit -eq 14 ]]; then elif [[ $rofi_exit -eq 14 ]]; then
echo -n "${stuff[${USERNAME_field}]}" | xclip echo -n "${stuff[${USERNAME_field}]}" | xclip
@ -108,7 +108,7 @@ ${open_url}: Open URL | ${copy_name}: Copy Username | ${copy_pass}: Copy Passwor
if [[ -z "${stuff["$AUTOTYPE_field"]}" ]]; then if [[ -z "${stuff["$AUTOTYPE_field"]}" ]]; then
xdotool_type "${stuff[${USERNAME_field}]}" xdotool_type "${stuff[${USERNAME_field}]}"
xdotool key Tab xdotool key Tab
echo "${password}" | tr -d '\n' | xdotool type --clearmodifiers --file - echo -n "${password}" | xdotool type --clearmodifiers --file -
#xdotool_type "$password" #xdotool_type "$password"
sleep 1 sleep 1
if [[ ${auto_enter} == "true" ]]; then if [[ ${auto_enter} == "true" ]]; then
@ -119,7 +119,7 @@ ${open_url}: Open URL | ${copy_name}: Copy Username | ${copy_pass}: Copy Passwor
if [[ $word == ":tab" ]]; then if [[ $word == ":tab" ]]; then
xdotool key Tab xdotool key Tab
elif [[ $word == "pass" ]]; then elif [[ $word == "pass" ]]; then
echo "${password}" | tr -d '\n' | xdotool type --clearmodifiers --file - echo -n "${password}" | xdotool type --clearmodifiers --file -
else else
xdotool_type "${stuff[${word}]}" xdotool_type "${stuff[${word}]}"
fi fi