From 6815ac19bfd8e945894d6d37ef5f0d51523aa8d4 Mon Sep 17 00:00:00 2001 From: Andrew Cady Date: Mon, 9 Jul 2018 17:46:12 -0400 Subject: eliminate warning (don't numerically compare the empty string) --- src/initrd/mdadm-dup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/initrd') diff --git a/src/initrd/mdadm-dup.sh b/src/initrd/mdadm-dup.sh index 70163a5..8ec302d 100644 --- a/src/initrd/mdadm-dup.sh +++ b/src/initrd/mdadm-dup.sh @@ -28,7 +28,7 @@ dm_snapshot() else rw_dev=$(LoSetup -f --show "$rw_file") || return fi - if [ "$cutoff_size" -a "$cutoff_size" -gt 0 ]; then + if [ "$cutoff_size" ] && [ "$cutoff_size" -gt 0 ]; then size=$cutoff_size else size=$(blockdev --getsz "$ro_dev") || return -- cgit v1.2.3