From 6189aaa14c703d4694652c3ff9fcedbaf6601657 Mon Sep 17 00:00:00 2001 From: Leon Messner Date: Sun, 25 Oct 2015 15:59:00 +0100 Subject: Bug 584 - Allow sftp as copy and commit-archive location destination. --- scripts/vyatta-commit-push.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/vyatta-commit-push.pl') diff --git a/scripts/vyatta-commit-push.pl b/scripts/vyatta-commit-push.pl index 2264164..1398533 100755 --- a/scripts/vyatta-commit-push.pl +++ b/scripts/vyatta-commit-push.pl @@ -85,7 +85,7 @@ foreach my $uri (@uris) { print " $remote "; my $rc = 0; - if ($scheme eq 'scp' ){ + if ($scheme =~ /^(scp|sftp)$/ ){ $cmd = "curl -s -S -T $tmp_push_file $uri/$save_file"; $rc = system($cmd); if( $rc >> 8 == 51 ){ -- cgit v1.2.3