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

Commit

Permalink
CORTX-30751: Codacy code cleanup (#1606)
Browse files Browse the repository at this point in the history
This patch fixes some of the codacy warnings.
warning fixed : "Double quote to prevent globing and words splitting".

Signed-off-by: Rinku Kothiya <rinku.kothiya@seagate.com>
  • Loading branch information
rkothiya committed Aug 20, 2022
1 parent 9e2a86c commit c413cf7
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions m0t1fs/linux_kernel/st/m0t1fs_fsync_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@
#


. `dirname $0`/common.sh
. `dirname $0`/m0t1fs_common_inc.sh
. `dirname $0`/m0t1fs_client_inc.sh
. `dirname $0`/m0t1fs_server_inc.sh
. `dirname $0`/m0t1fs_sns_common_inc.sh
. $(dirname "$0")/common.sh
. $(dirname "$0")/m0t1fs_common_inc.sh
. $(dirname "$0")/m0t1fs_client_inc.sh
. $(dirname "$0")/m0t1fs_server_inc.sh
. $(dirname "$0")/m0t1fs_sns_common_inc.sh

fsync_test()
{
`dirname $0`/m0t1fs_fsync_test_helper $MOTR_M0T1FS_MOUNT_DIR
`dirname "$0"`/m0t1fs_fsync_test_helper "$MOTR_M0T1FS_MOUNT_DIR"
return $?
}

Expand All @@ -48,15 +48,15 @@ main()
rc=0
echo "motr service started"

mkdir -p $MOTR_M0T1FS_MOUNT_DIR
mount_m0t1fs $MOTR_M0T1FS_MOUNT_DIR "oostore" || return 1
mkdir -p "$MOTR_M0T1FS_MOUNT_DIR"
mount_m0t1fs "$MOTR_M0T1FS_MOUNT_DIR" "oostore" || return 1

fsync_test || {
echo "Failed: Fsync test failed.."
rc=1
}

unmount_m0t1fs $MOTR_M0T1FS_MOUNT_DIR &>> $MOTR_TEST_LOGFILE
unmount_m0t1fs "$MOTR_M0T1FS_MOUNT_DIR" &>> "$MOTR_TEST_LOGFILE"

motr_service stop
if [ $? -ne "0" ]
Expand Down

0 comments on commit c413cf7

Please sign in to comment.