Displaying 1 result from an estimated 1 matches for "l_id_fil".
Did you mean:
l_id_file
2012 Nov 07
1
ssh-copy-id usability improvement
...ir 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_FILE="$L_ID_FILE.pub"
+ else
+ PUB_ID_FILE="$L_ID_FILE"
fi
PRIV_ID_FILE=$(dirna...