From 1cca6057c48b2c6c76a778fb9ac020b99004f5c2 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 13 Dec 2025 02:49:34 +0000 Subject: [PATCH] Add error handling for docker-compose wrapper creation Co-authored-by: ShaYmez <76499782+ShaYmez@users.noreply.github.com> --- hblink3-docker-install.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/hblink3-docker-install.sh b/hblink3-docker-install.sh index 1548c5e..2550b72 100755 --- a/hblink3-docker-install.sh +++ b/hblink3-docker-install.sh @@ -108,7 +108,13 @@ install_docker_and_dependencies() { # Wrapper script to provide docker-compose command using docker compose plugin exec docker compose "$@" EOF - chmod +x /usr/local/bin/docker-compose + if [ $? -eq 0 ] && [ -f /usr/local/bin/docker-compose ]; then + chmod +x /usr/local/bin/docker-compose + echo "docker-compose wrapper created successfully" + else + echo "ERROR: Failed to create docker-compose wrapper script" + exit 1 + fi fi else echo "Installing docker-compose from GitHub releases..."