From e6ad40182ce795b64bdd6ba4d0afe2611d91da5a Mon Sep 17 00:00:00 2001 From: Benjamin Drung Date: Tue, 21 May 2024 00:29:25 +0200 Subject: [PATCH] mkinitramfs: indent code that writes the outfile To increase the readability, indent the code in the brackets that write the `outfile`. --- mkinitramfs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/mkinitramfs b/mkinitramfs index a5a6470..63716ba 100755 --- a/mkinitramfs +++ b/mkinitramfs @@ -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