Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion pkg/blobfuse-proxy/install-proxy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,14 @@ then
pkg_list="${pkg_list} blobfuse2"
else
if echo "${BLOBFUSE2_VERSION}" | grep -q "preview"; then
$HOST_CMD apt remove -y blobfuse2
if dpkg -l | grep -q blobfuse2; then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to run dpkg -l comand on the host, another option is $HOST_CMD apt remove -y blobfuse2 || true

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Handled

$HOST_CMD apt-get remove -y blobfuse2
fi
pkg_list="${pkg_list} blobfuse2-preview=${BLOBFUSE2_VERSION}"
else
if dpkg -l | grep -q blobfuse2-preview; then
$HOST_CMD apt-get remove -y blobfuse2-preview
fi
pkg_list="${pkg_list} blobfuse2=${BLOBFUSE2_VERSION}"
fi
fi
Expand Down