Skip to content

Commit fce85f1

Browse files
committed
RANGER-5382: addressed review suggestion
1 parent f83a5d8 commit fce85f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

security-admin/scripts/setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ updatePropertyToFilePy(){
266266
#Update Properties to File if value is not empty
267267
#$1 -> propertyName $2 -> newPropertyValue $3 -> fileName
268268
updatePropertyToFilePyIfNotEmpty(){
269-
if [ "${2}" != "" ]
269+
if [ -n "${2}" ]
270270
then
271271
$PYTHON_COMMAND_INVOKER update_property.py $1 "${2}" $3
272272
check_ret_status $? "Update property failed for: " $1

0 commit comments

Comments
 (0)