summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbuff-di-wuff3
1 files changed, 3 insertions, 0 deletions
diff --git a/buff-di-wuff b/buff-di-wuff
index 822a15d..b248dff 100755
--- a/buff-di-wuff
+++ b/buff-di-wuff
@@ -43,6 +43,9 @@ grep '^[^#]' "$(dirname "$0")/downloads.list" | \
wget --no-check-certificate -O - "${urlDir}" 2> /dev/null | \
tr '"<>'"${spacer}" '\n' | \
grep '\(^\|/\)'"${urlFile}\$" | \
+ sed '
+ s@^/@'"${urlPrefix}"'@
+ ' | \
sort -u | \
xargs -r printf "${urlPrefix}%s\n"
else