From 8c18f90af9b5d619ccc813171df74a961f811a0c Mon Sep 17 00:00:00 2001 From: Hyperling Date: Wed, 5 Jul 2023 18:36:23 -0700 Subject: [PATCH] Eliminate one of the /opt/ hardcodes. --- source.env | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/source.env b/source.env index a3356c1..943f711 100644 --- a/source.env +++ b/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 PATH=$DOCKER_PATH:$PATH