Apply suggestions from code review

Co-authored-by: tiaga <10153548+tiaga@users.noreply.github.com>
This commit is contained in:
lunardunno
2023-11-23 17:59:10 +04:00
committed by GitHub
parent bd595f2c94
commit 2410bf6838
+5 -2
View File
@@ -14,5 +14,8 @@ docker_service=$(systemctl is-active docker);\
if [ "$docker_service" != "active" ]; then sudo $pm $check_pkgs; sudo $pm $silent_inst $docker_pkg;\
sleep 5 && sudo systemctl start docker && sleep 5;\
fi;\
if ! command -v sudo > /dev/null 2>&1; then echo "Failed to install Docker"; exit 1; fi;\
docker --version
if ! command -v sudo > /dev/null 2>&1; then
echo "Failed to install Docker, command not found"; exit 1;\
else
docker --version;\
fi;\