1234567891011121314151617181920212223 |
- #!/bin/bash
- # env-go - Setup Go development environment variables
- if [ "$0" == "env-go" ]; then
- PATH_SCRIPT="."
- else
- PATH_SCRIPT=${0/%\/env-go}
- fi
- CURRENT_PATH=`pwd`
- cd $PATH_SCRIPT
- PATH_SCRIPT=`pwd`
- cd $PATH_SCRIPT
- . ./go.env
- cd $CURRENT_PATH
- if [ "$1" == "" ]; then
- bash
- else
- $*
- fi
|