Skip to content

Commit be32a12

Browse files
committed
shellcheck: SC2013: To read lines rather than words, pipe/redirect to a 'while read' loop.
Signed-off-by: Akihiro Suda <[email protected]>
1 parent 10bc4dc commit be32a12

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/cidata/cidata.TEMPLATE.d/boot/05-persistent-data-volume.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ if [ "$(awk '$2 == "/" {print $3}' /proc/mounts)" == "tmpfs" ]; then
2121
for DISK in ${DISKS}; do
2222
IN_USE=false
2323
# Looking for a disk that is not mounted or partitioned
24+
# shellcheck disable=SC2013
2425
for PART in $(awk '/^\/dev\// {gsub("/dev/", ""); print $1}' /proc/mounts); do
2526
if [ "${DISK}" == "${PART}" ] || [ -e /sys/block/${DISK}/${PART} ]; then
2627
IN_USE=true

0 commit comments

Comments
 (0)