From e27220eb5b55974278dd364e8485de56a45662ed Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Sun, 20 Jan 2008 05:52:04 +1100 Subject: - (djm) Silence noice from expr in ssh-copy-id; patch from mikel AT mikelward.com --- contrib/ssh-copy-id | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib/ssh-copy-id') diff --git a/contrib/ssh-copy-id b/contrib/ssh-copy-id index 1555b5d37..acd36d398 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