Eliminate one of the /opt/ hardcodes.
This commit is contained in:
parent
d0d9ead069
commit
8c18f90af9
10
source.env
10
source.env
@ -1,3 +1,11 @@
|
|||||||
DOCKER_HOME=/opt/Docker
|
#!/bin/bash
|
||||||
|
# Converted the env file to a shell script so that $0 can be used.
|
||||||
|
|
||||||
|
DIR=`dirname $0`
|
||||||
|
if [[ $DIR == \.* ]]; then
|
||||||
|
DIR=`pwd`
|
||||||
|
fi
|
||||||
|
|
||||||
|
DOCKER_HOME=$DIR
|
||||||
DOCKER_PATH=$DOCKER_HOME/bin
|
DOCKER_PATH=$DOCKER_HOME/bin
|
||||||
PATH=$DOCKER_PATH:$PATH
|
PATH=$DOCKER_PATH:$PATH
|
||||||
|
Loading…
x
Reference in New Issue
Block a user