Skip to content
This repository was archived by the owner on May 3, 2024. It is now read-only.

Commit ca5cd76

Browse files
committed
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 <[email protected]>
1 parent 882a3a0 commit ca5cd76

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

st/m0t1fs-buffsize-layout-change-test.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ set -e
2424
SANDBOX_DIR=${SANDBOX_DIR:-/var/motr/sandbox.m0t1fs-writesize-st}
2525
M0_SRC_DIR=`readlink -f $0`
2626
M0_SRC_DIR=${M0_SRC_DIR%/*/*}
27-
cd $M0_SRC_DIR
27+
cd "$M0_SRC_DIR"
2828

2929
echo "Installing Motr services"
3030
sudo scripts/install-motr-service -u
@@ -43,7 +43,7 @@ dd if=/dev/zero of=/mnt/m0t1fs/12345:1 bs=1048576 count=10
4343
stat /mnt/m0t1fs/12345:1
4444
blksize=`stat /mnt/m0t1fs/12345:1 | grep "IO Block" | sed -e 's/.*IO Block:[[:space:]]//' -e 's/[[:space:]]reg.*//'`
4545

46-
if test $blksize -eq 1048576 -a $oldblksize -ne 1048576; then
46+
if test "$blksize" -eq 1048576 -a "$oldblksize" -ne 1048576; then
4747
echo "Successfully set IO Block on first write"
4848
else
4949
echo "IO Block size is not set correctly"
@@ -59,7 +59,7 @@ setfattr -n writesize -v "1048576" /mnt/m0t1fs/12345:2
5959
stat /mnt/m0t1fs/12345:2
6060
blksize=`stat /mnt/m0t1fs/12345:2 | grep "IO Block" | sed -e 's/.*IO Block:[[:space:]]//' -e 's/[[:space:]]reg.*//'`
6161

62-
if test $blksize -eq 1048576 -a $oldblksize -ne 1048576; then
62+
if test "$blksize" -eq 1048576 -a "$oldblksize" -ne 1048576; then
6363
echo "Successfully set IO Block on setfattr"
6464
else
6565
echo "IO Block size is not set correctly"

0 commit comments

Comments
 (0)