bugfix for creating file if doesn't exist
This commit is contained in:
@@ -11,3 +11,9 @@ FULL_BIN_PATH=$(python -c "import os; print(os.path.realpath('$BIN_DIR'))")
|
||||
|
||||
# ensure BIN_DIR is prepended to PATH
|
||||
expr "$PATH" : "${FULL_BIN_PATH}.*" > /dev/null || export PATH=$FULL_BIN_PATH:$PATH
|
||||
export DCOS_CONFIG=~/.dcos/dcos.toml
|
||||
|
||||
if [ ! -f "$DCOS_CONFIG" ]; then
|
||||
mkdir -p $(dirname "$DCOS_CONFIG")
|
||||
touch "$DCOS_CONFIG"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user