1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-08 22:58:11 -05:00

proper arg counts on run script

This commit is contained in:
Kyle Spearrin 2017-08-23 16:51:36 -04:00
parent 9409ac8d85
commit e7f713a805

View File

@ -6,14 +6,15 @@ set -e
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
OUTPUT_DIR="../." OUTPUT_DIR="../."
if [ $# -eq 2 ] if [ $# -gt 1 ]
then then
OUTPUT_DIR=$2 OUTPUT_DIR=$2
fi fi
DOCKER_DIR=$DIR/../docker DOCKER_DIR=$DIR/../docker
if [ $# -eq 3 ] if [ $# -eq 2 ]
then then
OUTPUT_DIR=$2
DOCKER_DIR=$3 DOCKER_DIR=$3
fi fi