commit | 588267188c50be4bd3dd9f4b23e777705d91dd27 | [log] [tgz] |
---|---|---|
author | Patrick Williams <patrick@stwcx.xyz> | Fri Apr 14 08:51:37 2023 -0500 |
committer | Patrick Williams <patrick@stwcx.xyz> | Fri Apr 14 16:27:12 2023 +0000 |
tree | c3628f38df9556eb301803a1c75ed17539e656ca | |
parent | bb79266625ef651ab97d59ff7d911f8cf25490d8 [diff] [blame] |
meta-bytedance: me-time-sync: fix shellcheck issues Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I49f7334245394be03e77cb455d9e4d461fdb5705
diff --git a/meta-bytedance/meta-g220a/recipes-phosphor/datetime/me-time-sync/me-time-sync.sh b/meta-bytedance/meta-g220a/recipes-phosphor/datetime/me-time-sync/me-time-sync.sh index 833b97d..f57de01 100644 --- a/meta-bytedance/meta-g220a/recipes-phosphor/datetime/me-time-sync/me-time-sync.sh +++ b/meta-bytedance/meta-g220a/recipes-phosphor/datetime/me-time-sync/me-time-sync.sh
@@ -15,11 +15,11 @@ exit 1 fi -t0=$((${a[7]})) -t1=$((${a[8]}*256)) -t2=$((${a[9]}*256*256)) -t3=$((${a[10]}*256*256*256)) -t=$((${t0}+${t1}+${t2}+${t3})) +t0=$((a[7])) +t1=$((a[8]*256)) +t2=$((a[9]*256*256)) +t3=$((a[10]*256*256*256)) +t=$((t0+t1+t2+t3)) echo "Setting date to ${t}" date -s @${t}