Skip to content

Commit 53b149b

Browse files
cvvzk8s-infra-cherrypick-robot
authored andcommitted
fix shellcheck
1 parent fd5b074 commit 53b149b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/blobfuse-proxy/init.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ then
3232
release=$($HOST_CMD lsb_release -rs)
3333
echo "Ubuntu release: $release"
3434

35-
if [ "$release" \< "22.04" ]
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
@@ -44,7 +44,7 @@ then
4444
yes | $HOST_CMD dpkg -i /etc/packages-microsoft-prod.deb && $HOST_CMD apt update
4545

4646
pkg_list=""
47-
if [ "${INSTALL_BLOBFUSE}" = "true" ] && [ "$release" \< "22.04" ]
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
@@ -58,7 +58,7 @@ then
5858

5959
if [ "${INSTALL_BLOBFUSE2}" = "true" ]
6060
then
61-
if [ "$release" \< "22.04" ]; then
61+
if [ $(expr "$release" \< "22.04") -eq 1 ]; then
6262
echo "install fuse for blobfuse2"
6363
pkg_list="${pkg_list} fuse"
6464
else

0 commit comments

Comments
 (0)