Skip to content

Commit 909762d

Browse files
Handled uninstalled scenarios
1 parent 38a9986 commit 909762d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pkg/blobfuse-proxy/install-proxy.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,14 @@ then
7474
pkg_list="${pkg_list} blobfuse2"
7575
else
7676
if echo "${BLOBFUSE2_VERSION}" | grep -q "preview"; then
77-
$HOST_CMD apt remove -y blobfuse2
77+
if dpkg -l | grep -q blobfuse2; then
78+
$HOST_CMD apt-get remove -y blobfuse2
79+
fi
7880
pkg_list="${pkg_list} blobfuse2-preview=${BLOBFUSE2_VERSION}"
7981
else
82+
if dpkg -l | grep -q blobfuse2-preview; then
83+
$HOST_CMD apt-get remove -y blobfuse2-preview
84+
fi
8085
pkg_list="${pkg_list} blobfuse2=${BLOBFUSE2_VERSION}"
8186
fi
8287
fi

0 commit comments

Comments
 (0)