]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mkcephfs: minor fix
authorSamuel Just <samuel.just@dreamhost.com>
Tue, 29 Mar 2011 20:33:37 +0000 (13:33 -0700)
committerSamuel Just <samuel.just@dreamhost.com>
Tue, 29 Mar 2011 23:16:11 +0000 (16:16 -0700)
line 400: && $type == "osd" is not always valid.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
src/mkcephfs.in

index f19e2cd52e4543e888a471c52e395ea81935281d..35f1da6be01b67e29590ddea34a2fa6db955eb9d 100644 (file)
@@ -397,7 +397,7 @@ if [ $allhosts -eq 1 ]; then
            pushed_to="$pushed_to $host "
        fi
        
-       if [ $mkbtrfs -eq 1 ] && $type = "osd"; then
+       if [ $mkbtrfs -eq 1 ] && [ "$type" = "osd" ]; then
            do_root_cmd "$0 -d $rdir --prepare-osdfs $name"
        fi