From 9165e412ef91ce5c3ecb413061ff80d538bb5800 Mon Sep 17 00:00:00 2001 From: Zhao Lei Date: Wed, 18 Mar 2015 14:55:58 +1100 Subject: [PATCH] common: fix a typo in _require_block_device() We need to check "$1" instead "$SCRATCH_DEV" in this function. Signed-off-by: Zhao Lei Reviewed-by: Lukas Czerner Signed-off-by: Dave Chinner --- common/rc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/rc b/common/rc index 1ed9df53..23193c83 100644 --- a/common/rc +++ b/common/rc @@ -1288,7 +1288,7 @@ _require_block_device() echo "Usage: _require_block_device " 1>&2 exit 1 fi - if [ "`_is_block_dev $SCRATCH_DEV`" == "" ]; then + if [ "`_is_block_dev "$1"`" == "" ]; then _notrun "require $1 to be valid block disk" fi } -- 2.39.5