diff options
| author | RealAestan <15686636+RealAestan@users.noreply.github.com> | 2023-04-03 16:07:54 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-03 14:07:54 +0000 |
| commit | a94ee62680c284a5fa86ac1db9660e344f41bd2e (patch) | |
| tree | 0107493b4a1c77c6054acf14a7af988974e53f89 /.local/bin | |
| parent | 5a6c56d565e4e7c20171f5757e12306d9253c52b (diff) | |
| download | eibhear-a94ee62680c284a5fa86ac1db9660e344f41bd2e.tar.gz eibhear-a94ee62680c284a5fa86ac1db9660e344f41bd2e.tar.zst eibhear-a94ee62680c284a5fa86ac1db9660e344f41bd2e.zip | |
dmenuunicode: don't use variables in the printf format string (#1284)
It works but the good practice is to use `printf "..%s.." "$foo"`
see https://www.shellcheck.net/wiki/SC2059
Diffstat (limited to '.local/bin')
| -rwxr-xr-x | .local/bin/dmenuunicode | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/dmenuunicode b/.local/bin/dmenuunicode index 704c809..dd12bc3 100755 --- a/.local/bin/dmenuunicode +++ b/.local/bin/dmenuunicode @@ -13,6 +13,6 @@ chosen=$(cut -d ';' -f1 ~/.local/share/larbs/chars/* | dmenu -i -l 30 | sed "s/ if [ -n "$1" ]; then xdotool type "$chosen" else - printf "$chosen" | xclip -selection clipboard + printf "%s" "$chosen" | xclip -selection clipboard notify-send "'$chosen' copied to clipboard." & fi |
