Skip to content

Commit

Permalink
Update sdx-stop
Browse files Browse the repository at this point in the history
Moving SFCC DevOps projects to OpenSFCC as part of a much larger Open Source Community Effort.
  • Loading branch information
manifestinteractive authored May 14, 2024
1 parent a5d9333 commit cb2c8a7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/sdx-stop
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ if [ -d $HOME/.nvm ]; then
fi

# Set Variables
LOGFILE=$HOME/.sfccdevops/sandbox.log
LOGFILE=$HOME/.opensfcc/sandbox.log

# Alias sandbox to sfcc-ci for custom handling
sandbox() {
# Check if SFCC_SANDBOX_ID is set
if [ -z "$SFCC_SANDBOX_ID" ]; then
echo -e "\n❌ MISSING SFCC_SANDBOX_ID\n\n\033[0;2mPlease make sure you've added your environmental variables:\n\n› \033[0;36mhttps://github.com/sfccdevops/sandbox-launchd\n"
echo -e "\n❌ MISSING SFCC_SANDBOX_ID\n\n\033[0;2mPlease make sure you've added your environmental variables:\n\n› \033[0;36mhttps://github.com/opensfcc/sandbox-launchd\n"
exit 1

# Check if sfcc-ci is installed
Expand All @@ -23,7 +23,7 @@ sandbox() {

# Exit if sfcc-ci is not installed
else
echo -e "\n❌ MISSING SFCC-CI\n\n\033[0;2mPlease install & configure sfcc-ci:\n\n› \033[0;36mhttps://github.com/sfccdevops/sandbox-launchd\n"
echo -e "\n❌ MISSING SFCC-CI\n\n\033[0;2mPlease install & configure sfcc-ci:\n\n› \033[0;36mhttps://github.com/opensfcc/sandbox-launchd\n"
exit 1
fi
}
Expand All @@ -37,4 +37,4 @@ sandbox client:auth >> $LOGFILE
# Stop Sandbox ( no need to wait, just send the shutdown command )
sandbox sandbox:stop --sandbox $SFCC_SANDBOX_ID >> $LOGFILE

# No need to send notification, developer is long gone
# No need to send notification, developer is long gone

0 comments on commit cb2c8a7

Please sign in to comment.