fix: shellcheck for modules.d/99squash/clear-squash.sh

master
Harald Hoyer 2021-02-12 13:26:14 +01:00 committed by Harald Hoyer
parent 119bb1b81d
commit 73f5cc7c37
1 changed files with 3 additions and 6 deletions

View File

@ -1,9 +1,6 @@
#!/bin/sh #!/bin/bash
SQUASH_MNT_REC=/squash/mounts SQUASH_MNT_REC=/squash/mounts
SQUASH_MNTS=( )


while read mnt; do mapfile -t SQUASH_MNTS < $SQUASH_MNT_REC
SQUASH_MNTS+=( "$mnt" )
done <<< "$(cat $SQUASH_MNT_REC)"


umount --lazy -- ${SQUASH_MNTS[@]} umount --lazy -- "${SQUASH_MNTS[@]}"