summaryrefslogtreecommitdiff
path: root/contrib/ssh-copy-id
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2007-07-17 09:38:24 +0000
committerColin Watson <cjwatson@debian.org>2007-07-17 09:38:24 +0000
commit06578e895399d63fe148205b0034e15b8fa94605 (patch)
tree49bba773ea3e05c324ca5ca35d47e4d9d6867fd0 /contrib/ssh-copy-id
parenta433736669864e51b5b81353d0cdaa2f5856aa44 (diff)
* ssh-copy-id no longer prints the output of expr (thanks, Peter
Eisentraut; closes: #291534).
Diffstat (limited to 'contrib/ssh-copy-id')
-rw-r--r--contrib/ssh-copy-id2
1 files changed, 1 insertions, 1 deletions
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
11 shift 11 shift
12 # check if we have 2 parameters left, if so the first is the new ID file 12 # check if we have 2 parameters left, if so the first is the new ID file
13 if [ -n "$2" ]; then 13 if [ -n "$2" ]; then
14 if expr "$1" : ".*\.pub" ; then 14 if expr "$1" : ".*\.pub" >/dev/null; then
15 ID_FILE="$1" 15 ID_FILE="$1"
16 else 16 else
17 ID_FILE="$1.pub" 17 ID_FILE="$1.pub"