variable extraction
This commit is contained in:
parent
97b13b2a60
commit
8f46b6c811
|
@ -353,8 +353,9 @@ if is_debian; then
|
||||||
|
|
||||||
if [ "$IS_MOUNT_FSTAB" = 1 ]; then
|
if [ "$IS_MOUNT_FSTAB" = 1 ]; then
|
||||||
# Test if lsblk available, if not skip this test...
|
# Test if lsblk available, if not skip this test...
|
||||||
if test -x "$(command -v lsblk)"; then
|
LSBLK_BIN=$(command -v lsblk)
|
||||||
for mountPoint in $(lsblk -o MOUNTPOINT -l -n | grep '/'); do
|
if test -x "${LSBLK_BIN}"; then
|
||||||
|
for mountPoint in $(${LSBLK_BIN} -o MOUNTPOINT -l -n | grep '/'); do
|
||||||
grep -Eq "$mountPoint\W" /etc/fstab || failed "IS_MOUNT_FSTAB"
|
grep -Eq "$mountPoint\W" /etc/fstab || failed "IS_MOUNT_FSTAB"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue