changed docker checking line to check for docker command

This commit is contained in:
2026-04-27 16:16:11 +00:00
parent 233c09fb46
commit 1cb86be8ff

View File

@@ -211,7 +211,7 @@ if [[ -d /etc/docker ]]
fi
# update lazydocker
if [[ -f /etc/docker/daemon.json ]]
if command -v docker &> /dev/null
then
curl -s https://raw.githubusercontent.com/jesseduffield/lazydocker/master/scripts/install_update_linux.sh | bash
mv /root/.local/bin/lazydocker /usr/local/bin