diff options
author | Fredrik Salomonsson <plattfot@posteo.net> | 2021-01-27 14:10:44 -0800 |
---|---|---|
committer | Fredrik Salomonsson <plattfot@posteo.net> | 2021-01-27 14:10:44 -0800 |
commit | 61029b7c3d222ce67c6064c0197a7ad656c00c78 (patch) | |
tree | 1fbe62b3107ecf6a32ec63b683f92151b9cd4c41 | |
parent | 14981992611331d8391db50126b95f955f36d5af (diff) | |
download | pinentry-rofi-61029b7c3d222ce67c6064c0197a7ad656c00c78.tar.gz |
Fix issue with quoting and AUTHOR and HVERSION
Hall for some reason adds quotes to these, so stamping them directly
into the strings breaks the quoting.
For now use it as a separate argument to format. As that makes it
easier to deal with when versioning up etc.
-rw-r--r-- | scripts/pinentry-rofi.in | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/pinentry-rofi.in b/scripts/pinentry-rofi.in index a241ef6..9813a3d 100644 --- a/scripts/pinentry-rofi.in +++ b/scripts/pinentry-rofi.in @@ -50,13 +50,14 @@ Options: -v, --version Display version. -h, --help Display this help. Author: -@AUTHOR@ +~a " (car (command-line)) - default-display) + default-display + @AUTHOR@) (exit #t)) (when (option-ref options 'version #f) - (format #t "@HVERSION@\n") + (format #t "~a~%" @HVERSION@) (exit #t)) (format #t "OK Please go ahead\n") (force-output) |