From c145b805ab31ef19f4d5bd8f9a7d82c3a136e0e6 Mon Sep 17 00:00:00 2001 From: cyfraeviolae Date: Tue, 29 Dec 2020 18:11:29 -0500 Subject: init --- urlescape | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 urlescape (limited to 'urlescape') 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 -- cgit v1.2.3