From b36c59c6c588e9d79ffc1f9fd9c21326a2b11e58 Mon Sep 17 00:00:00 2001 From: tastytea Date: Mon, 22 Jan 2024 16:43:51 +0100 Subject: [PATCH] putwww: escape spaces --- .config/zsh/functions/putwww | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.config/zsh/functions/putwww b/.config/zsh/functions/putwww index 75c8648..af158ff 100755 --- a/.config/zsh/functions/putwww +++ b/.config/zsh/functions/putwww @@ -26,5 +26,7 @@ $(print -l ${(q)putcmds}) EOF for file in "${@}"; do - print '\e[1;95m→\e[0m' https://tastytea.de/files/${dir}"${file##*/}" + local url=https://tastytea.de/files/"${dir}${file##*/}" + url=${url// /%20} + print '\e[1;95m→\e[0m' ${url} done