Created
July 21, 2015 08:56
-
-
Save giulioungaretti/76db041b55fd37e6a0ee to your computer and use it in GitHub Desktop.
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
#! /bin/sh | |
# | |
# updateGOPATH.sh | |
# Copyright (C) 2015 giulio <giulioungaretti@me.com> | |
# | |
# Distributed under terms of the MIT license. | |
# | |
# this exports GB_PROJECT_DIR | |
GB_PROJECT_DIR=$(gb env) | |
GB_PROJECT_DIR=$(echo $GB_PROJECT_DIR | sed s/\"//g ) | |
GB_PROJECT_DIR=$(echo $GB_PROJECT_DIR | sed s/GB_PROJECT_DIR\=//g ) | |
export GB_PROJECT_DIR=$GB_PROJECT_DIR | |
export GOPATH=$GOPATH:$GB_PROJECT_DIR:$GB_PROJECT_DIR/vendor |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment