mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-21 02:01:03 +07:00
Apply suggestions from code review
Co-authored-by: tiaga <10153548+tiaga@users.noreply.github.com>
This commit is contained in:
@@ -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;\
|
||||
|
||||
Reference in New Issue
Block a user