From 06578e895399d63fe148205b0034e15b8fa94605 Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Tue, 17 Jul 2007 09:38:24 +0000 Subject: * ssh-copy-id no longer prints the output of expr (thanks, Peter Eisentraut; closes: #291534). --- contrib/ssh-copy-id | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib') diff --git a/contrib/ssh-copy-id b/contrib/ssh-copy-id index 84db5db51..093fb2668 100644 --- a/contrib/ssh-copy-id +++ b/contrib/ssh-copy-id @@ -11,7 +11,7 @@ if [ "-i" = "$1" ]; then shift # check if we have 2 parameters left, if so the first is the new ID file if [ -n "$2" ]; then - if expr "$1" : ".*\.pub" ; then + if expr "$1" : ".*\.pub" >/dev/null; then ID_FILE="$1" else ID_FILE="$1.pub" -- cgit v1.2.3