bugfix for creating file if doesn't exist

This commit is contained in:
Tamar Ben-Shachar
2015-09-14 14:43:19 -07:00
parent 20103a1df1
commit 7e1d157e36

View File

@@ -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