Skip to content

Commit

Permalink
startmapd: don't pass --config option if file does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewseidl committed Feb 26, 2018
1 parent d6dfc53 commit 9c9117b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion startmapd
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,12 @@ while (( $# )); do
HTTPS_KEY="--key $1" ;;
--config)
shift
CONFIG="--config $1" ;;
if [ -e "$1" ]; then
CONFIG="--config $1"
else
echo "WARN: config file does not exist, ignoring: --config $1" >&2
fi
;;
--non-interactive)
NON_INTERACTIVE=true ;;
--verbose)
Expand Down

0 comments on commit 9c9117b

Please sign in to comment.