Displaying 1 result from an estimated 1 matches for "efa0d29".
Did you mean:
cfa0d27
2012 Nov 07
1
ssh-copy-id usability improvement
...y-id script at
http://git.hands.com/ssh-copy-id:
commit ff8993ba2cefbb28b4648d643a73f01fec64617c
Author: Amir Yalon <git at please.nospammail.net>
Date: Wed Nov 7 12:44:40 2012 +0200
Enable suffix other than .pub in argument to -i
diff --git a/ssh-copy-id b/ssh-copy-id
index 8cdad28..efa0d29 100755
--- a/ssh-copy-id
+++ b/ssh-copy-id
@@ -23,10 +23,10 @@ usage () {
use_id_file() {
local L_ID_FILE=$1
- if expr "$L_ID_FILE" : ".*\.pub$" >/dev/null ; then
- PUB_ID_FILE="$L_ID_FILE"
- else
+ if [ -f "$L_ID_FILE.pub" ]; then
PUB_ID_F...