From dea3ce3350eb0791918c51318d51a062aa027c66 Mon Sep 17 00:00:00 2001 From: rixhieloomis Date: Sat, 2 Mar 2024 00:23:47 +0530 Subject: [PATCH] Formatting entrypoint.sh --- entrypoint.sh | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 4ca69e4..63f8c2e 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,5 +1,18 @@ #!/bin/sh -l -set +x + +# Print a message indicating the execution of sg-cli command +echo "Executing sg-cli command: $@" + +# Execute sg-cli command sg-cli $@ +# Check the exit status of the previous command +if [ $? -eq 0 ]; then + # If the command was successful, print a success message + echo "Command executed successfully!" +else + # If the command failed, print an error message + echo "Error: Command execution failed!" +fi +