Skip to content

Commit

Permalink
Fix #97
Browse files Browse the repository at this point in the history
`ls` command was executed locally instead of remotely
  • Loading branch information
kissifrot committed Jul 15, 2017
1 parent 3df8b94 commit 848c391
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backup-manager-upload
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ sub ssh_clean_directory

# First, create the list of existing archives
my ($fh, $in) = get_tempfile('ssh-archives-XXXXXX');
my $cmd = "$ssh $ssh_options $user".'@'.$host." ls $location/*";
my $cmd = "$ssh $ssh_options $user".'@'.$host." 'ls $location/*'";
my $buffer = `$cmd`;
print $fh $buffer;
close $fh;
Expand Down

0 comments on commit 848c391

Please sign in to comment.