diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-01-31 10:30:01 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-01-31 10:30:01 +0200 |
commit | 6c6a7fffcb03895ffe498dae3c46c35c70231ff0 (patch) | |
tree | 51a1d4bba66b4fa2899609859218e89a4726bec5 /install | |
parent | 69478acef74988e8f1aeaa146f8108bd3e74b6b5 (diff) |
http to https audit
Diffstat (limited to 'install')
-rwxr-xr-x | install | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -29,7 +29,7 @@ # # For example: # -# install /tmp/build2-toolchain-0.1.0.tar.gz http://pkg.cppget.org/1/alpha +# install /tmp/build2-toolchain-0.1.0.tar.gz https://pkg.cppget.org/1/alpha # usage="usage: $0 [options] <build2-toolchain-archive> <build2-repo>" @@ -110,7 +110,7 @@ cd $tmp # Download archive if it is an HTTP URL. # -if [[ $tca == http://* ]]; then +if [[ $tca == http://* || $tca == https://* ]]; then url=$tca tca=`echo "$url" | sed -e 's%^.*/\(.*\)$%\1%' -` if [ -z "$tca" ]; then @@ -122,7 +122,7 @@ elif [[ $tca != /* ]]; then tca=$owd/$tca fi -if [[ $rep != http://* && $rep != /* ]]; then +if [[ ( $rep != http://* || $tca == https://* ) && $rep != /* ]]; then rep=$owd/$rep fi |