-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a3e940d
commit dea3ce3
Showing
1 changed file
with
14 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
|
||
|