diff options
author | Colin Watson <cjwatson@debian.org> | 2007-10-19 09:59:23 (GMT) |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2007-10-19 09:59:23 (GMT) |
commit | fcf2d188965c3e27fd0b49f049711d2ff1d14d2d (patch) | |
tree | c61d2d9da599f5cde499490c1b10c07e0d53f97f /functions | |
parent | 50f4c4f5f10b5ccc0fe1b04e6184b8dad70ebbe1 (diff) | |
download | debootstrap-fcf2d188965c3e27fd0b49f049711d2ff1d14d2d.zip debootstrap-fcf2d188965c3e27fd0b49f049711d2ff1d14d2d.tar.gz debootstrap-fcf2d188965c3e27fd0b49f049711d2ff1d14d2d.tar.bz2 |
* Add support for ssh:/// URLs (thanks, Steffen Joeris; closes: #434893).
r49820
Diffstat (limited to 'functions')
-rw-r--r-- | functions | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -351,6 +351,14 @@ just_get () { else return 1 fi + elif [ "${from#ssh:}" != "$from" ]; then + local ssh_dest="$(echo $from | sed -e 's#ssh://##' -e 's#/#:/#')" + if [ -n "$ssh_dest" ]; then + scp "$ssh_dest" "$dest" + return 0 + else + return 1 + fi else error 1 UNKNOWNLOC "unknown location %s" "$from" fi |