From 2354b79fbb8bad7d64ef27a94aa316424e593285 Mon Sep 17 00:00:00 2001 From: alfhad Date: Thu, 23 Jun 2022 01:12:03 +0530 Subject: [PATCH] CORTX-30751: Codacy code cleanup (#1606) This patch fixes some of the codacy warnings. warning fixed : "Double quote to prevent globing and words splitting". Signed-off-by: alfhad --- spiel/st/m0t1fs_spiel_sns_common_inc.sh | 42 ++++++++++++------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/spiel/st/m0t1fs_spiel_sns_common_inc.sh b/spiel/st/m0t1fs_spiel_sns_common_inc.sh index 9e828d6a0cd..8d3a783a1ab 100755 --- a/spiel/st/m0t1fs_spiel_sns_common_inc.sh +++ b/spiel/st/m0t1fs_spiel_sns_common_inc.sh @@ -91,8 +91,8 @@ verify() { echo "verifying ..." for ((i=0; i < ${#files[*]}; i++)) ; do - local_read $((${unit_size[$i]} * 1024)) ${file_size[$i]} || return $? - read_and_verify ${files[$i]} $((${unit_size[$i]} * 1024)) ${file_size[$i]} || return $? + local_read $((${unit_size[$i]} * 1024)) "${file_size[$i]}" || return $? + read_and_verify "${files[$i]}" $((${unit_size[$i]} * 1024)) "${file_size[$i]}" || return $? done echo "file verification sucess" @@ -143,7 +143,7 @@ spiel_prepare() spiel_cleanup() { - cd $M0_SRC_DIR/utils/spiel + cd "$M0_SRC_DIR"/utils/spiel cat $PYTHON_STUFF | xargs rm -rf rm -rf build/ $PYTHON_STUFF cd - @@ -166,8 +166,8 @@ EOF spiel_sns_repair_abort() { -echo $M0_SRC_DIR/utils/spiel/m0spiel $SPIEL_OPTS - $M0_SRC_DIR/utils/spiel/m0spiel $SPIEL_OPTS <