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 3ba4cc42e229b6eaafd41a598ce6dafad0113589
parent a31403770dd83e144dc909a789422317b04a3ec1
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Sun, 19 Aug 2018 21:30:51 +0200

Insert HTML %20 characters instead of spaces

Diffstat:
Mlinks/bin/upload | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/links/bin/upload b/links/bin/upload @@ -5,6 +5,7 @@ user="ad" # user="andersdc" rsync -ravz --progress -e "ssh" "$1" "$user"@"$host":/var/www/html/files_nonpub/ url="https://$host/files_nonpub/$(basename "$1")" +url="${url// /%20}" echo -e "\\n$(tput setaf 2)Uploaded to $url (copied to clipboard)$(tput sgr0)" if [ "$(uname)" = "Darwin" ]; then