View | Details | Raw Unified | Return to bug 1431
Collapse All | Expand All

(-)ssh-copy-id.bak (-1 / +1 lines)
Lines 11-17 Link Here
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"

Return to bug 1431