@@ -27,12 +27,12 @@ HOST_CMD="nsenter --mount=/proc/1/ns/mnt"
2727DISTRIBUTION=$( $HOST_CMD cat /etc/os-release | grep ^ID= | cut -d' =' -f2 | tr -d ' "' )
2828echo " Linux distribution: $DISTRIBUTION "
2929
30- if [ " ${DISTRIBUTION} " = " ubuntu" ] && ( [ " ${INSTALL_BLOBFUSE} " = " true" ] || [ " ${INSTALL_BLOBFUSE2} " = " true" ])
30+ if [ " ${DISTRIBUTION} " = " ubuntu" ] && { [ " ${INSTALL_BLOBFUSE} " = " true" ] || [ " ${INSTALL_BLOBFUSE2} " = " true" ]; }
3131then
3232 release=$( $HOST_CMD lsb_release -rs)
3333 echo " Ubuntu release: $release "
3434
35- if [ $( expr " $release " \< " 22.04" ) -eq 1 ]
35+ if [ " $( expr " $release " \< " 22.04" ) " -eq 1 ]
3636 then
3737 cp /blobfuse-proxy/packages-microsoft-prod-18.04.deb /host/etc/packages-microsoft-prod.deb
3838 else
4444 yes | $HOST_CMD dpkg -i /etc/packages-microsoft-prod.deb && $HOST_CMD apt update
4545
4646 pkg_list=" "
47- if [ " ${INSTALL_BLOBFUSE} " = " true" ] && [ $( expr " $release " \< " 22.04" ) -eq 1 ]
47+ if [ " ${INSTALL_BLOBFUSE} " = " true" ] && [ " $( expr " $release " \< " 22.04" ) " -eq 1 ]
4848 then
4949 pkg_list=" ${pkg_list} fuse"
5050 # install blobfuse with latest version or specific version
5858
5959 if [ " ${INSTALL_BLOBFUSE2} " = " true" ]
6060 then
61- if [ $( expr " $release " \< " 22.04" ) -eq 1 ]; then
61+ if [ " $( expr " $release " \< " 22.04" ) " -eq 1 ]; then
6262 echo " install fuse for blobfuse2"
6363 pkg_list=" ${pkg_list} fuse"
6464 else
7575 fi
7676 fi
7777 echo " begin to install ${pkg_list} "
78- $HOST_CMD apt-get install -y $pkg_list
78+ $HOST_CMD apt-get install -y " $pkg_list "
7979 $HOST_CMD rm -f /etc/packages-microsoft-prod.deb
8080fi
8181
0 commit comments