]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix(warpclock): shellcheck for modules.d/00warpclock
authorHarald Hoyer <harald@redhat.com>
Fri, 26 Mar 2021 09:29:05 +0000 (10:29 +0100)
committerHarald Hoyer <harald@hoyer.xyz>
Fri, 26 Mar 2021 11:17:19 +0000 (12:17 +0100)
modules.d/00warpclock/.shchkdir [new file with mode: 0644]
modules.d/00warpclock/warpclock.sh

diff --git a/modules.d/00warpclock/.shchkdir b/modules.d/00warpclock/.shchkdir
new file mode 100644 (file)
index 0000000..e69de29
index ca04d37c7f2041505bd70376be2ce31d64efb863..c97eb6013df76c5d718d581088ea52b67b7d61b6 100644 (file)
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 if test -e /etc/adjtime; then
-    while read line; do
+    while read -r line; do
         if test "$line" = LOCAL; then
             hwclock --systz
         fi