diff options
Diffstat (limited to 'functions/losetup.sh')
-rwxr-xr-x | functions/losetup.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/functions/losetup.sh b/functions/losetup.sh index c3dd59641..971054284 100755 --- a/functions/losetup.sh +++ b/functions/losetup.sh @@ -22,7 +22,7 @@ Lodetach () # Changes to block devices result in uevents which trigger rules which in # turn access the loop device (ex. udisks-part-id, blkid) which can cause # a race condition. We call 'udevadm settle' to help avoid this. - if [ $(which udevadm) ] + if command -v udevadm >/dev/null then udevadm settle fi |