Commit b1f05b93 authored by Noah Zoschke's avatar Noah Zoschke

dont cd

parent 3a136f21
#!/usr/bin/env bash
# bin/release <build-dir>
BIN_DIR=$(dirname $0)
BIN_DIR=$(cd $(dirname $0); pwd) # absolute path
BUILD_DIR=$1
NAME=$($BIN_DIR/detect $BUILD_DIR) || exit 1
cd $BUILD_DIR
cat <<EOF
---
config_vars:
......@@ -16,7 +14,7 @@ EOF
[ "$NAME" = "Python/Django" ] || exit 0
SETTINGS_FILE=$(ls **/settings.py | head -1)
SETTINGS_FILE=$(ls $BUILD_DIR/**/settings.py | head -1)
PROJECT=$(dirname $SETTINGS_FILE)
cat <<EOF
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment