avoid getting duplicates in docker dev paths

This commit is contained in:
Sam 2017-12-15 10:11:00 +11:00
parent 2f792bc59f
commit 32d881399f

View File

@ -1,8 +1,8 @@
#!/bin/bash
set -e
SCRIPTPATH=$(cd "$(dirname "$0")"; pwd -P)
SOURCE_DIR=$(cd "$SCRIPTPATH" && cd ../.. && pwd -P)
SCRIPTPATH=$(cd "$(dirname "$0")" > /dev/null; pwd -P)
SOURCE_DIR=$(cd "$SCRIPTPATH" > /dev/null; cd ../.. > /dev/null; pwd -P)
DATA_DIR="$SOURCE_DIR/data/postgres"
show_help() {