diff mbox series

[1/2] common: Escape SCRATCH_DEV variable

Message ID 20210324224817.103503-1-andrealmeid@collabora.com (mailing list archive)
State New, archived
Headers show
Series [1/2] common: Escape SCRATCH_DEV variable | expand

Commit Message

André Almeida March 24, 2021, 10:48 p.m. UTC
Escape SCRATCH_DEV variable so it prints its name, instead of printing
the value. If the value is "", the error message will not be very
informative.

Signed-off-by: André Almeida <andrealmeid@collabora.com>
---
 common/rc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Gabriel Krisman Bertazi March 24, 2021, 10:55 p.m. UTC | #1
André Almeida <andrealmeid@collabora.com> writes:

> Escape SCRATCH_DEV variable so it prints its name, instead of printing
> the value. If the value is "", the error message will not be very
> informative.
>
> Signed-off-by: André Almeida <andrealmeid@collabora.com>

cover letter is missing.  Other than that, for the entire series:

Reviewed-by: Gabriel Krisman Bertazi <krisman@collabora.com>
diff mbox series

Patch

diff --git a/common/rc b/common/rc
index 6d1757da..fc1a7751 100644
--- a/common/rc
+++ b/common/rc
@@ -1537,7 +1537,7 @@  _require_scratch_nocheck()
 	tmpfs)
 		if [ -z "$SCRATCH_DEV" -o ! -d "$SCRATCH_MNT" ];
 		then
-		    _notrun "this test requires a valid \$SCRATCH_MNT and unique $SCRATCH_DEV"
+		    _notrun "this test requires a valid \$SCRATCH_MNT and unique \$SCRATCH_DEV"
 		fi
 		;;
 	ubifs)