diff options
author | emkael <emkael@tlen.pl> | 2020-02-07 03:04:34 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2020-02-07 03:04:34 +0100 |
commit | 5e0c5146601fad2c6e499fc65531c52c6271e839 (patch) | |
tree | a0f92738a8f924447bdcb973b6c63bc7ed4ad062 | |
parent | 974a5243e98a8b92f9064174e1ee9997e2f7972a (diff) |
URL sanitation fixes
-rwxr-xr-x | backup-tc.sh | 2 |
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" ] |