dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit b78858b63ca7b8f6912086f3675fe24982fa979e
parent 0dd738bf63d4540e1e67435866c20a3b55cc83fe
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Thu, 28 Nov 2019 11:03:48 +0100

Fix line endings in upload output

Diffstat:
M.local/bin/upload | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/.local/bin/upload b/.local/bin/upload @@ -94,16 +94,16 @@ upload_file() { if [ "$verbose" = 1 ]; then echo msg="Uploaded to $url (copied to clipboard)" - printf "%s\\n" "$msg" + printf '%s\n' "$msg" else - printf "%s\\n" "$url" + printf '%s\n' "$url" fi [ "$notify" = 1 ] && notify-send "$msg" if [ "$(uname)" = "Darwin" ]; then - printf "%s" "$url" | pbcopy + printf '%s\n' "$url" | pbcopy else - printf "%s" "$url" | xclip + printf '%s\n' "$url" | xclip fi }