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
diff --git a/meta-phosphor/recipes-phosphor/initrdscripts/files/obmc-init.sh b/meta-phosphor/recipes-phosphor/initrdscripts/files/obmc-init.sh
index 8354b2b..3df371f 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 @@
# 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