When log behavior depends on configuration (e.g., WARP_CHANNEL) or when scripts auto-select an environment/tool (e.g., which Xcode app to use), make the behavior explicit and observable:
elif for each supported channel/value).Example pattern (channel-aware log file selection):
if [ "$WARP_CHANNEL" = "local" ]; then
LOG_FILE=~/Library/Logs/warp_local.log
elif [ "$WARP_CHANNEL" = "oss" ]; then
LOG_FILE=~/Library/Logs/warp_oss.log
else
echo "Warning: unrecognized WARP_CHANNEL='$WARP_CHANNEL'" >&2
LOG_FILE=~/Library/Logs/warp.log
fi
echo "Using log file: $LOG_FILE"
Enter the URL of a public GitHub repository