# Copyright 2008 Sun Microsystems, Inc. All rights reserved
# Use is subject to license terms.
#
+# Copyright (c) 2012, Whamcloud, Inc.
+#
# This file is part of Lustre, http://www.lustre.org/
# Lustre is a trademark of Sun Microsystems, Inc.
#
shift
for ((i = 0; i < $ndevs; i++)); do
host=${host_names[$i]}
- if [ -n ${do_teardown_ec[$i]} ]; then
+ if [[ -n "${do_teardown_ec[$i]}" ]]; then
teardown_ec_devno $host ${client_names[$i]}
fi
done