Displaying 1 result from an estimated 1 matches for "priv_id_fil".
Did you mean:
priv_id_file
2012 Nov 07
1
ssh-copy-id usability improvement
...{
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=$(dirname "$PUB_ID_FILE")/$(basename "$PUB_ID_FILE" .pub)