Merge branch 'indentation' into 'master'

mkinitramfs: indent code that writes the outfile

See merge request kernel-team/initramfs-tools!106
This commit is contained in:
Ben Hutchings 2024-05-21 19:23:19 +00:00
commit 2b31485260

View File

@ -500,16 +500,16 @@ fi
} 3>&1 | { read -r exit_code; exit "${exit_code:-0}"; } || exit $?
{
if [ -s "${__TMPEARLYCPIO}" ]; then
cat "${__TMPEARLYCPIO}" || exit 1
fi
if [ -s "${__TMPEARLYCPIO}" ]; then
cat "${__TMPEARLYCPIO}" || exit 1
fi
$compress -c "${__TMPMAINCPIO}" ||
{ echo "E: mkinitramfs failure $compress $?" >&2; exit 1; }
$compress -c "${__TMPMAINCPIO}" ||
{ echo "E: mkinitramfs failure $compress $?" >&2; exit 1; }
if [ -s "${__TMPCPIOGZ}" ]; then
cat "${__TMPCPIOGZ}" || exit 1
fi
if [ -s "${__TMPCPIOGZ}" ]; then
cat "${__TMPCPIOGZ}" || exit 1
fi
} >"${outfile}" || exit 1
exit 0