From 98681e320327a5ee0b9013fbfc217f48e0cd1ca4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CHenrique?= Date: Fri, 13 Dec 2024 11:32:04 +0000 Subject: [PATCH] Linting --- scripts/build-platypus.sh | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/scripts/build-platypus.sh b/scripts/build-platypus.sh index fc2b8520..59e58a48 100755 --- a/scripts/build-platypus.sh +++ b/scripts/build-platypus.sh @@ -40,16 +40,19 @@ parse_options() { export_config_file() { INV_COMMAND="$*" - printf 'Invocation command:\n\n ./%s %s\n\n' "$(basename "$0")" "${INV_COMMAND}" >> ${CONFIG_FILE} - printf 'Unused arguments:\n\n' >> ${CONFIG_FILE} - for u in "${OTHER_ARGUMENTS[@]}"; do - printf '%s\n' "${u}" >> ${CONFIG_FILE} - done - printf '\nOptions:\n\n' >> ${CONFIG_FILE} - printf 'GPU_BUILD = %s\n' "${GPU_BUILD}" >> ${CONFIG_FILE} - printf 'GPU_BACKEND = %s\n' "${GPU_BACKEND}" >> ${CONFIG_FILE} - printf 'GPU_ARCH = %s\n' "${GPU_ARCH}" >> ${CONFIG_FILE} - printf 'CPU_TARGET = %s\n\n' "${CPU_TARGET}" >> ${CONFIG_FILE} + { + printf 'Invocation command:\n\n ./%s %s\n\n' "$(basename "$0")" "${INV_COMMAND}" + printf 'Unused arguments:\n\n' + for u in "${OTHER_ARGUMENTS[@]}"; do + printf '%s\n' "${u}" + done + + printf '\nOptions:\n\n' + printf 'GPU_BUILD = %s\n' "${GPU_BUILD}" + printf 'GPU_BACKEND = %s\n' "${GPU_BACKEND}" + printf 'GPU_ARCH = %s\n' "${GPU_ARCH}" + printf 'CPU_TARGET = %s\n\n' "${CPU_TARGET}" + } >> ${CONFIG_FILE} }