diff options
author | cyfraeviolae <cyfraeviolae> | 2020-12-29 18:11:29 -0500 |
---|---|---|
committer | cyfraeviolae <cyfraeviolae> | 2020-12-31 21:08:39 -0500 |
commit | c145b805ab31ef19f4d5bd8f9a7d82c3a136e0e6 (patch) | |
tree | 2bf045c3cb5182320469354c9904447e22e57a10 /urlescape |
init
Diffstat (limited to 'urlescape')
-rwxr-xr-x | urlescape | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/urlescape b/urlescape new file mode 100755 index 0000000..413e7e3 --- /dev/null +++ b/urlescape @@ -0,0 +1,8 @@ +#!/usr/bin/env bash +for f in ./static/assets/*; do + g="$(echo "$f" | sed "s@+@ @g;s@%@\\\\x@g" | xargs -0 printf "%b")" + if [ "$f" != "$g" ]; then + echo mv "$f" "$g" + mv "$f" "$g" + fi +done |