]> andersk Git - gssapi-openssh.git/blobdiff - openssh/contrib/ssh-copy-id
Import of OpenSSH 4.9p1
[gssapi-openssh.git] / openssh / contrib / ssh-copy-id
index a1c0a9234316ce7e843f0d7237fafbeca3ffc7cb..acd36d398721f6fec3668626f7112fc22d6b80e8 100644 (file)
@@ -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"
@@ -24,7 +24,7 @@ else
   fi
 fi
 
-if [ -z "`eval $GET_ID`" -a -r "${ID_FILE}" ] ; then
+if [ -z "`eval $GET_ID`" ] && [ -r "${ID_FILE}" ] ; then
   GET_ID="cat ${ID_FILE}"
 fi
 
This page took 0.193358 seconds and 4 git commands to generate.