From cfd176dbe91d1c92f5bb93143df9b3f46a8f1e10 Mon Sep 17 00:00:00 2001 From: Milosz Wasilewski Date: Tue, 11 Jun 2024 09:49:54 +0100 Subject: [PATCH] automated: linux: reformat ota-rollback/download-update.sh Use only spaces, no tabs Signed-off-by: Milosz Wasilewski --- automated/linux/ota-rollback/download-update.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/automated/linux/ota-rollback/download-update.sh b/automated/linux/ota-rollback/download-update.sh index 15a153b1d..b5271fc8b 100755 --- a/automated/linux/ota-rollback/download-update.sh +++ b/automated/linux/ota-rollback/download-update.sh @@ -18,8 +18,8 @@ DEBUG="false" SOTA_CONFDIR="/etc/sota/conf.d" usage() { - echo "\ - Usage: $0 [-t ] [-u ] [-s ] [-o ] [-d ] + echo "\ + Usage: $0 [-t ] [-u ] [-s ] [-o ] [-d ] -t This determines type of corruption test performed: @@ -50,11 +50,11 @@ usage() { DEPLOYMENT_HASH ostree commit ID and is used in the filesystem paths. -d Enables more debug messages. Default: false - " + " } while getopts "t:u:s:o:f:d:h" opts; do - case "$opts" in + case "$opts" in t) TYPE="${OPTARG}";; u) UBOOT_VAR_TOOL="${OPTARG}";; s) UBOOT_VAR_SET_TOOL="${OPTARG}";; @@ -62,7 +62,7 @@ while getopts "t:u:s:o:f:d:h" opts; do f) UBOOT_IMAGE_PATH="${OPTARG}";; d) DEBUG="${OPTARG}";; h|*) usage ; exit 1 ;; - esac + esac done # the script works only on builds with aktualizr-lite @@ -154,9 +154,9 @@ fi # wait for 'install-post' signal while ! grep "install-post" /var/sota/ota.signal do - echo "Sleeping 1s" - sleep 1 - cat /var/sota/ota.signal + echo "Sleeping 1s" + sleep 1 + cat /var/sota/ota.signal done report_pass "${TYPE}-install-post-received"