1
0
Fork 0

putwww: escape spaces

This commit is contained in:
tastytea 2024-01-22 16:43:51 +01:00
parent 6778c34647
commit b36c59c6c5
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
1 changed files with 3 additions and 1 deletions

View File

@ -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