jq '.' $dir/json > save1.json
fi
- if which jsonschema > /dev/null;
+ if test "$LOCALRUN" = "yes" && which jsonschema > /dev/null;
then
jsonschema -i $dir/json $CEPH_ROOT/doc/rados/command/list-inconsistent-obj.json || return 1
fi
jq '.' $dir/json > save2.json
fi
- if which jsonschema > /dev/null;
+ if test "$LOCALRUN" = "yes" && which jsonschema > /dev/null;
then
jsonschema -i $dir/json $CEPH_ROOT/doc/rados/command/list-inconsistent-obj.json || return 1
fi
jq '.' $dir/json > save3.json
fi
- if which jsonschema > /dev/null;
+ if test "$LOCALRUN" = "yes" && which jsonschema > /dev/null;
then
jsonschema -i $dir/json $CEPH_ROOT/doc/rados/command/list-inconsistent-obj.json || return 1
fi
jq '.' $dir/json > save${num}.json
fi
- if which jsonschema > /dev/null;
+ if test "$LOCALRUN" = "yes" && which jsonschema > /dev/null;
then
jsonschema -i $dir/json $CEPH_ROOT/doc/rados/command/list-inconsistent-obj.json || return 1
fi
jq '.' $dir/json > save6.json
fi
- if which jsonschema > /dev/null;
+ if test "$LOCALRUN" = "yes" && which jsonschema > /dev/null;
then
jsonschema -i $dir/json $CEPH_ROOT/doc/rados/command/list-inconsistent-obj.json || return 1
fi
jq '.' $dir/json > save1.json
fi
- if which jsonschema > /dev/null;
+ if test "$LOCALRUN" = "yes" && which jsonschema > /dev/null;
then
jsonschema -i $dir/json $CEPH_ROOT/doc/rados/command/list-inconsistent-snap.json || return 1
fi