Skip to content

Commit

Permalink
Fix #2
Browse files Browse the repository at this point in the history
  • Loading branch information
jerome-quere committed Jan 25, 2018
1 parent 18122a0 commit c4d87b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/storages/ssh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,6 @@ function ib_storage_ssh_prune() {
ib_should_be_prune "${backup}" "$retention" && toRemove="${toRemove} \"${dirName}/${backup}\""
done

ssh $sshKey -p "${sshPort}" "${sshUser}@${sshHost}" "rm -r ${toRemove}"
[ ! -z "$toRemove" ] && ssh $sshKey -p "${sshPort}" "${sshUser}@${sshHost}" "rm -r ${toRemove}"
return 0
}

0 comments on commit c4d87b2

Please sign in to comment.