if unable to add a missing newline, fail

SSH-Copy-ID-Upstream: 76b25e18f55499ea9edb4c4d6dc4a80bebc36d95
This commit is contained in:
Jakub Jelen 2020-09-29 10:02:45 +00:00 committed by Darren Tucker
parent 3594b3b015
commit 983e05ef3b
1 changed files with 1 additions and 1 deletions

View File

@ -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