From 1f9a9729e50e8b135df03a2271c321110f417d26 Mon Sep 17 00:00:00 2001 From: alfhad Date: Sun, 26 Jun 2022 12:56:00 +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_dix_common_inc.sh | 42 ++++++++++++------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/spiel/st/m0t1fs_spiel_dix_common_inc.sh b/spiel/st/m0t1fs_spiel_dix_common_inc.sh index 3e5dc8e4516..fb395557800 100755 --- a/spiel/st/m0t1fs_spiel_dix_common_inc.sh +++ b/spiel/st/m0t1fs_spiel_dix_common_inc.sh @@ -83,8 +83,8 @@ verify() local log_file=$SANDBOX_DIR/check.txt local res=$SANDBOX_DIR/res.txt echo "verifying ..." - $DIXINIT_TOOL_CHECK >$log_file 2>&1 - grep "Metadata exists:" $log_file | grep -v "Metadata exists: true" > $res + "$DIXINIT_TOOL_CHECK" >"$log_file" 2>&1 + grep "Metadata exists:" "$log_file" | grep -v "Metadata exists: true" > $res if [ -s $res ] then echo "See log file with results: $log_file, $res" @@ -116,7 +116,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 - @@ -139,8 +139,8 @@ EOF spiel_dix_repair_abort() { -echo $M0_SRC_DIR/utils/spiel/m0spiel $SPIEL_OPTS - $M0_SRC_DIR/utils/spiel/m0spiel $SPIEL_OPTS <