diff options
author | Zev Weiss <zev@bewilderbeest.net> | 2023-04-19 06:12:07 +0300 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2023-04-25 22:51:41 +0300 |
commit | 1bcd53d4a2eb4002d78c564a83c13ce5d4c6e12d (patch) | |
tree | d10f979c316c473f73bea224ab6c22293f1781c8 /meta-phosphor/recipes-phosphor/initrdscripts | |
parent | 321a95f8e0413365a569da6438ac748591bd1a68 (diff) | |
download | openbmc-1bcd53d4a2eb4002d78c564a83c13ce5d4c6e12d.tar.xz |
meta-phosphor: initrdscripts: fix multi-word variable expansion
The 'files' variable is a list of (currently two) paths, which 'find'
needs to see as separate arguments.
Signed-off-by: Zev Weiss <zev@bewilderbeest.net>
Change-Id: I31c6e8e77ed21936b8425cd7d656f1ad8a5de94a
Diffstat (limited to 'meta-phosphor/recipes-phosphor/initrdscripts')
-rw-r--r-- | meta-phosphor/recipes-phosphor/initrdscripts/files/obmc-init.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta-phosphor/recipes-phosphor/initrdscripts/files/obmc-init.sh b/meta-phosphor/recipes-phosphor/initrdscripts/files/obmc-init.sh index 8354b2bcb2..3df371fbc1 100644 --- a/meta-phosphor/recipes-phosphor/initrdscripts/files/obmc-init.sh +++ b/meta-phosphor/recipes-phosphor/initrdscripts/files/obmc-init.sh @@ -424,7 +424,8 @@ mkdir -p $upper $work # written right before rebooting or powercycling. If none exists, # use the image build date. files="$upper/var/lib/systemd/random-seed $rodir/etc/os-release" -time=$(find "$files" -exec stat -c %Y {} \; | sort -n | tail -n 1) +# shellcheck disable=SC2086 +time=$(find $files -exec stat -c %Y {} \; | sort -n | tail -n 1) # Allow RTC coordinated time to supersede this setting if [ "$(date +%s)" -lt "$time" ]; then date -s @$((time + 5)) || true |