Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .ci/micromamba/init.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/bash
# Make sure we source the script
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "ERROR: This script must be 'sourced':"
Expand Down Expand Up @@ -38,7 +39,13 @@ ENV_NAME="${1:-dev}"
log "Environment: $ENV_NAME"

# Get the location of this script
THIS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
if [ -n "$ZSH_VERSION" ]; then
RAW_SOURCE="${(%):-%x}"
else
RAW_SOURCE="${BASH_SOURCE[0]}"
fi

THIS_DIR="$( cd "$( dirname "$RAW_SOURCE" )" &> /dev/null && pwd )"
log "Location: $THIS_DIR"

# Check if we have environment file
Expand Down