summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2020-02-07 03:04:34 +0100
committeremkael <emkael@tlen.pl>2020-02-07 03:04:34 +0100
commit5e0c5146601fad2c6e499fc65531c52c6271e839 (patch)
treea0f92738a8f924447bdcb973b6c63bc7ed4ad062
parent974a5243e98a8b92f9064174e1ee9997e2f7972a (diff)
URL sanitation fixes
-rwxr-xr-xbackup-tc.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/backup-tc.sh b/backup-tc.sh
index 79f235c..d1b76da 100755
--- a/backup-tc.sh
+++ b/backup-tc.sh
@@ -2,7 +2,7 @@
URL=$1
[[ $URL =~ (/?(index\.html)?(\#.*)?$) ]] && \
- URL=${URL//$BASH_REMATCH/}
+ echo $BASH_REMATCH && URL=${URL/%$BASH_REMATCH/}
OUTPUT_DIR="$2"
if [ -z "$OUTPUT_DIR" ]