From ec7a0c7eefacc68532bdc909f05a01eca8b3139d Mon Sep 17 00:00:00 2001 From: Anoop C S Date: Thu, 27 Apr 2017 14:34:08 +0530 Subject: extras/hooks: Use double quotes while using [..] This avoids the following warning when first operand is null [: =: unary operator expected Change-Id: I5439d8f60a6d9e30e6ba04c16c3de2096a87c38f BUG: 1446126 Signed-off-by: Anoop C S Reviewed-on: https://review.gluster.org/17127 Smoke: Gluster Build System NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System Reviewed-by: Jeff Darcy --- extras/hook-scripts/start/post/S30samba-start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extras/hook-scripts') diff --git a/extras/hook-scripts/start/post/S30samba-start.sh b/extras/hook-scripts/start/post/S30samba-start.sh index 752eca650d3..3e0f2573b60 100755 --- a/extras/hook-scripts/start/post/S30samba-start.sh +++ b/extras/hook-scripts/start/post/S30samba-start.sh @@ -102,7 +102,7 @@ function get_smb () { } parse_args $@ -if [ $(get_smb "$VOL") = "disable" ]; then +if [ "$(get_smb "$VOL")" = "disable" ]; then exit 0 fi -- cgit