if unable to add a missing newline, fail
SSH-Copy-ID-Upstream: 76b25e18f55499ea9edb4c4d6dc4a80bebc36d95
This commit is contained in:
parent
3594b3b015
commit
983e05ef3b
|
@ -252,7 +252,7 @@ installkeys_sh() {
|
|||
cd;
|
||||
umask 077;
|
||||
mkdir -p "${AUTH_KEY_DIR}" &&
|
||||
{ [ -z \`tail -1c ${AUTH_KEY_FILE} 2>/dev/null\` ] || echo >> "${AUTH_KEY_FILE}"; } &&
|
||||
{ [ -z \`tail -1c ${AUTH_KEY_FILE} 2>/dev/null\` ] || echo >> "${AUTH_KEY_FILE}" || exit 1; } &&
|
||||
cat >> "${AUTH_KEY_FILE}" ||
|
||||
exit 1;
|
||||
if type restorecon >/dev/null 2>&1; then
|
||||
|
|
Loading…
Reference in New Issue