Skip to content

Commit 7dd49eb

Browse files
mwasilewroxell
authored andcommitted
automated: linux: reformat ota-rollback/download-update.sh
Use only spaces, no tabs Signed-off-by: Milosz Wasilewski <milosz.wasilewski@foundries.io>
1 parent 443b0f2 commit 7dd49eb

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

automated/linux/ota-rollback/download-update.sh

+8-8
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ DEBUG="false"
1818
SOTA_CONFDIR="/etc/sota/conf.d"
1919

2020
usage() {
21-
echo "\
22-
Usage: $0 [-t <kernel|uboot>] [-u <u-boot var read>] [-s <u-boot var set>] [-o <ostree|ostree+compose_apps>] [-d <true|false>]
21+
echo "\
22+
Usage: $0 [-t <kernel|uboot>] [-u <u-boot var read>] [-s <u-boot var set>] [-o <ostree|ostree+compose_apps>] [-d <true|false>]
2323
2424
-t <kernel|uboot|app>
2525
This determines type of corruption test performed:
@@ -50,11 +50,11 @@ usage() {
5050
DEPLOYMENT_HASH ostree commit ID and is used in the
5151
filesystem paths.
5252
-d <true|false> Enables more debug messages. Default: false
53-
"
53+
"
5454
}
5555

5656
while getopts "t:u:s:o:f:d:h" opts; do
57-
case "$opts" in
57+
case "$opts" in
5858
t) TYPE="${OPTARG}";;
5959
u) UBOOT_VAR_TOOL="${OPTARG}";;
6060
s) UBOOT_VAR_SET_TOOL="${OPTARG}";;
@@ -64,7 +64,7 @@ while getopts "t:u:s:o:f:d:h" opts; do
6464
;;
6565
d) DEBUG="${OPTARG}";;
6666
h|*) usage ; exit 1 ;;
67-
esac
67+
esac
6868
done
6969

7070
# the script works only on builds with aktualizr-lite
@@ -156,9 +156,9 @@ fi
156156
# wait for 'install-post' signal
157157
while ! grep "install-post" /var/sota/ota.signal
158158
do
159-
echo "Sleeping 1s"
160-
sleep 1
161-
cat /var/sota/ota.signal
159+
echo "Sleeping 1s"
160+
sleep 1
161+
cat /var/sota/ota.signal
162162
done
163163
report_pass "${TYPE}-install-post-received"
164164

0 commit comments

Comments
 (0)