From 7bad74b0476ce6ec85f65c52276ecd13cfcfad3f Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Fri, 8 Nov 2019 14:25:55 +0100 Subject: [conf-tgz] indent --- .../modules.d/conf-tgz/hooks/fetch-config-tgz.sh | 36 +++++++++++----------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/builder/modules.d/conf-tgz/hooks/fetch-config-tgz.sh b/builder/modules.d/conf-tgz/hooks/fetch-config-tgz.sh index 1c8ace61..89852974 100755 --- a/builder/modules.d/conf-tgz/hooks/fetch-config-tgz.sh +++ b/builder/modules.d/conf-tgz/hooks/fetch-config-tgz.sh @@ -4,26 +4,26 @@ type emergency_shell >/dev/null 2>&1 || source /lib/dracut-lib.sh - slx_server="$(getarg slxsrv=)" - slx_server_base="$(getarg slxbase=)" +slx_server="$(getarg slxsrv=)" +slx_server_base="$(getarg slxbase=)" - if [ -z "$SLX_NO_CONFIG_TGZ" ]; then - # build config.tgz url - conftgz_url="http://${slx_server#@}/${slx_server_base}/config.tgz" +if [ -z "$SLX_NO_CONFIG_TGZ" ]; then + # build config.tgz url + conftgz_url="http://${slx_server#@}/${slx_server_base}/config.tgz" - # check if system's uuid was set - if [ -s "/run/system-uuid" ]; then - uuid="$(cat /run/system-uuid)" - if [ -n "$uuid" ]; then - conftgz_url="${conftgz_url}?uuid=${uuid}" - fi + # check if system's uuid was set + if [ -s "/run/system-uuid" ]; then + uuid="$(cat /run/system-uuid)" + if [ -n "$uuid" ]; then + conftgz_url="${conftgz_url}?uuid=${uuid}" fi - info "Download config.tgz from '$conftgz_url'..." - slx-tools download_retry -s "${conftgz_url}" > "/etc/config.tgz" + fi + info "Download config.tgz from '$conftgz_url'..." + slx-tools download_retry -s "${conftgz_url}" > "/etc/config.tgz" - if [[ ! -s "/etc/config.tgz" ]]; then - warn \ - "Downloading 'config.tgz' from '${slx_server}' failed with: $return_code" - # TODO handle error - fi + if [[ ! -s "/etc/config.tgz" ]]; then + warn \ + "Downloading 'config.tgz' from '${slx_server}' failed with: $return_code" + # TODO handle error fi +fi -- cgit v1.2.3-55-g7522