diff options
author | Andrew Cady <d@jerkface.net> | 2018-07-09 17:46:12 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2018-07-09 17:46:12 -0400 |
commit | 6815ac19bfd8e945894d6d37ef5f0d51523aa8d4 (patch) | |
tree | 0bf2b941e8955bd8a7108ff8146efc8633298b69 | |
parent | 72dfe1ba963a67acda82d23e09daa5e4623ddf31 (diff) |
eliminate warning (don't numerically compare the empty string)
-rw-r--r-- | src/initrd/mdadm-dup.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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() | |||
28 | else rw_dev=$(LoSetup -f --show "$rw_file") || return | 28 | else rw_dev=$(LoSetup -f --show "$rw_file") || return |
29 | fi | 29 | fi |
30 | 30 | ||
31 | if [ "$cutoff_size" -a "$cutoff_size" -gt 0 ]; then | 31 | if [ "$cutoff_size" ] && [ "$cutoff_size" -gt 0 ]; then |
32 | size=$cutoff_size | 32 | size=$cutoff_size |
33 | else | 33 | else |
34 | size=$(blockdev --getsz "$ro_dev") || return | 34 | size=$(blockdev --getsz "$ro_dev") || return |