github.com/cloudcredo/cloudrocker@v0.0.0-20160108110610-1320f8cc2dfd/docker/fixtures/build/droplet/app/cloudrocker-start-1c4352a23e52040ddb1857d7675fe3cc.sh (about)

     1  
     2  if [ -z "$1" ]; then
     3    echo "usage: $0 <app dir> <command to run>" >&2
     4    exit 1
     5  fi
     6  
     7  cd "$1"
     8  
     9  if [ -d .profile.d ]; then
    10    for env_file in .profile.d/*; do
    11      source $env_file
    12    done
    13  fi
    14  
    15  shift
    16  
    17  eval "$@"