diff options
-rwxr-xr-x | abuild.in | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -179,7 +179,14 @@ uri_fetch() { # we need GNU wget for this case "$uri" in - https://*) opts="--no-check-certificate";; + *https://*) opts="--no-check-certificate";; + esac + + # fix saveas-*://* URIs + case "$uri" in + # remove 'saveas-' from beginning and + # '/filename' from end of URI + saveas-*://*) uri="${uri:7:$(expr ${#uri} - 7 - ${#d} - 1)}";; esac mkdir -p "$SRCDEST" @@ -194,7 +201,7 @@ uri_fetch() { is_remote() { case "$1" in - http://*|ftp://*|https://*) + http://*|ftp://*|https://*|saveas-*://*) return 0;; esac return 1 |