diff options
author | Colin Watson <cjwatson@debian.org> | 2016-08-06 10:49:58 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2016-08-06 10:49:58 +0100 |
commit | a8ed8d256b2e2c05b0c15565a7938028c5192277 (patch) | |
tree | 87abbdc914a38b43e4e5bb9581ad1f46eabbf88e /contrib/ssh-copy-id | |
parent | f0329aac23c61e1a5197d6d57349a63f459bccb0 (diff) | |
parent | 99522ba7ec6963a05c04a156bf20e3ba3605987c (diff) |
Import openssh_7.3p1.orig.tar.gz
Diffstat (limited to 'contrib/ssh-copy-id')
-rw-r--r-- | contrib/ssh-copy-id | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/contrib/ssh-copy-id b/contrib/ssh-copy-id index afde8b170..bef5c95d9 100644 --- a/contrib/ssh-copy-id +++ b/contrib/ssh-copy-id | |||
@@ -233,17 +233,17 @@ populate_new_ids() { | |||
233 | -o ControlPath=none \ | 233 | -o ControlPath=none \ |
234 | -o LogLevel=INFO \ | 234 | -o LogLevel=INFO \ |
235 | -o PreferredAuthentications=publickey \ | 235 | -o PreferredAuthentications=publickey \ |
236 | -o IdentitiesOnly=yes "$@" exit 2>$L_TMP_ID_FILE.stderr </dev/null | 236 | -o IdentitiesOnly=yes "$@" exit 2>"$L_TMP_ID_FILE.stderr" </dev/null |
237 | if [ "$?" = "$L_SUCCESS" ] ; then | 237 | if [ "$?" = "$L_SUCCESS" ] ; then |
238 | : > $L_TMP_ID_FILE | 238 | : > "$L_TMP_ID_FILE" |
239 | else | 239 | else |
240 | grep 'Permission denied' $L_TMP_ID_FILE.stderr >/dev/null || { | 240 | grep 'Permission denied' "$L_TMP_ID_FILE.stderr" >/dev/null || { |
241 | sed -e 's/^/ERROR: /' <$L_TMP_ID_FILE.stderr >$L_TMP_ID_FILE | 241 | sed -e 's/^/ERROR: /' <"$L_TMP_ID_FILE.stderr" >"$L_TMP_ID_FILE" |
242 | cat >/dev/null #consume the other keys, causing loop to end | 242 | cat >/dev/null #consume the other keys, causing loop to end |
243 | } | 243 | } |
244 | fi | 244 | fi |
245 | 245 | ||
246 | cat $L_TMP_ID_FILE | 246 | cat "$L_TMP_ID_FILE" |
247 | done | 247 | done |
248 | } | 248 | } |
249 | ) | 249 | ) |