aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRasmus Steinke <rasi@xssn.at>2018-05-15 03:42:17 +0200
committerGitHub <noreply@github.com>2018-05-15 03:42:17 +0200
commit4fdd367c6b69f2e5b740ba86ce304f58d18ec03e (patch)
tree1c9a5ce3fbdfed16de3dd28503379fa60bd720e2
parent5315ee32a438b392c67ec984809884ca49066043 (diff)
parent4ed851e051dffa7ad7bf893281d2c9da76112c30 (diff)
downloadrofi-pass-4fdd367c6b69f2e5b740ba86ce304f58d18ec03e.tar.gz
Merge pull request #129 from aminb/patch-1
get rid of the empty line after autotype, replace remaining echo calls with printf
-rwxr-xr-xrofi-pass6
1 files changed, 3 insertions, 3 deletions
diff --git a/rofi-pass b/rofi-pass
index 8e2165f..eb29c9a 100755
--- a/rofi-pass
+++ b/rofi-pass
@@ -110,7 +110,7 @@ generateQrCode() {
has_qrencode
if [[ $? -eq "1" ]]; then
- echo "qrencode not found" | _rofi -dmenu
+ printf '%s\n' "qrencode not found" | _rofi -dmenu
exit_code=$?
if [[ $exit_code -eq "1" ]]; then
exit
@@ -122,7 +122,7 @@ generateQrCode() {
checkIfPass
pass "$selected_password" | head -n 1 | qrencode -d 300 -v 8 -l H -o - | _image_viewer
if [[ $? -eq "1" ]]; then
- echo "" | _rofi -dmenu -mesg "Image viewer not defined or cannot read from pipe"
+ printf '%s\n' "" | _rofi -dmenu -mesg "Image viewer not defined or cannot read from pipe"
exit_value=$?
if [[ $exit_value -eq "1" ]]; then
exit
@@ -490,7 +490,7 @@ typeMenu () {
checkIfPass
local -a keys=("${!stuff[@]}")
keys=("${keys[@]/$AUTOTYPE_field}")
- typefield=$({ echo ${AUTOTYPE_field} ; printf '%s\n' "${keys[@]}" | sort; } | _rofi -dmenu -p "Choose Field to type > ")
+ typefield=$({ printf '%s' "${AUTOTYPE_field}" ; printf '%s\n' "${keys[@]}" | sort; } | _rofi -dmenu -p "Choose Field to type > ")
typefield_exit=$?
if [[ $typefield_exit -eq 1 ]]; then
exit