Skip to content

Commit

Permalink
fix: 🐛 use eval for enable/start
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Nemchik <[email protected]>
  • Loading branch information
nemchik committed Oct 2, 2023
1 parent 5be02a4 commit 1df6f4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .scripts/enable_docker_service.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ enable_docker_service() {
fi
if [[ -n "${DOCKER_SERVICE_ENABLE}" ]]; then
info "Enabling docker service."
sudo "${DOCKER_SERVICE_ENABLE}" > /dev/null 2>&1 || fatal "Failed to enable docker service.\nFailing command: ${F[C]}${DOCKER_SERVICE_ENABLE}"
eval "sudo ${DOCKER_SERVICE_ENABLE}" > /dev/null 2>&1 || fatal "Failed to enable docker service.\nFailing command: ${F[C]}${DOCKER_SERVICE_ENABLE}"
info "Starting docker service."
sudo "${DOCKER_SERVICE_START}" > /dev/null 2>&1 || fatal "Failed to start docker service.\nFailing command: ${F[C]}${DOCKER_SERVICE_START}"
eval "sudo ${DOCKER_SERVICE_START}" > /dev/null 2>&1 || fatal "Failed to start docker service.\nFailing command: ${F[C]}${DOCKER_SERVICE_START}"
fi
}

Expand Down

0 comments on commit 1df6f4a

Please sign in to comment.