Skip to content

Commit 72e392f

Browse files
rkothiyakiwionly2
authored andcommitted
CORTX-30751: Codacy code cleanup (Seagate#1606) (Seagate#1965)
This patch fixes some of the codacy warnings. warning fixed : "Double quote to prevent globing and words splitting". Signed-off-by: Rinku Kothiya <[email protected]>
1 parent 9274ef2 commit 72e392f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/provisioning/vmhost/prepare-host.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ wget https://releases.hashicorp.com/vagrant/2.2.6/vagrant_2.2.6_x86_64.rpm
7171
sudo yum -y install ./vagrant_2.2.6_x86_64.rpm
7272
rm -fv ./vagrant_2.2.6_x86_64.rpm
7373
vagrant plugin install vagrant-{env,hostmanager,scp,libvirt}
74-
sudo usermod -a -G libvirt $USER
74+
sudo usermod -a -G libvirt "$USER"
7575
mv "/usr/bin/kvm" "/usr/bin/kvm--`date +'%d%m%Y_%H%M%S_%s'`"
7676
sudo ln -s /usr/libexec/qemu-kvm /usr/bin/kvm
7777
ls -l /usr/bin/kvm
@@ -89,14 +89,14 @@ echo -en "\nIf you already have the box image of the Vanila [CentOS/7] Box, ente
8989
read -t 300 box_path
9090

9191

92-
cd $HOME
92+
cd "$HOME"
9393
mkdir Centos7
9494
cd Centos7
9595
vagrant init "Centos/7"
9696
if [ "$box_path" == "" ]; then
9797
vagrant box add Centos/7 --provider=libvirt
9898
else
99-
vagrant box add "Centos/7" $box_path
99+
vagrant box add "Centos/7" "$box_path"
100100
fi
101101
vagrant up
102102
vagrant status

0 commit comments

Comments
 (0)