Ceph: A minor fix to 'generate-rook-csv.sh' script

A square bracket check on <shell_command> return status
will not work in an 'if' condition.

Signed-off-by: Arun Kumar Mohan <arun.iiird@gmail.com>
This commit is contained in:
Arun Kumar Mohan
2020-05-23 23:36:37 +05:30
parent 643a2aff27
commit bb770bb0d1
+2 -2
View File
@@ -18,13 +18,13 @@ yq="${YQ_TOOL:-yq}"
##########
# CHECKS #
##########
if [ ! command -v operator-sdk &>/dev/null ] && [ ! -f $operator_sdk ]; then
if ! command -v "$operator_sdk" >/dev/null && [ ! -f "$operator_sdk" ]; then
echo "operator-sdk is not installed $operator_sdk"
echo "follow instructions here: https://github.com/operator-framework/operator-sdk/#quick-start"
exit 1
fi
if [ ! command -v yq &>/dev/null ] && [ ! -f $yq ]; then
if ! command -v "$yq" >/dev/null && [ ! -f "$yq" ]; then
echo "yq is not installed"
echo "follow instructions here: https://github.com/mikefarah/yq#install"
exit 1