summaryrefslogtreecommitdiff
path: root/urlescape
diff options
context:
space:
mode:
Diffstat (limited to 'urlescape')
-rwxr-xr-xurlescape8
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