From 1f5326ed8eec5fcf0d130a63a3ec1acafd2dc423 Mon Sep 17 00:00:00 2001 From: Leon Klingele Date: Thu, 19 Oct 2017 14:52:07 +0200 Subject: [PATCH] client: Fix 'unbound variable' error on missing args --- client/git-simpleserver | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/git-simpleserver b/client/git-simpleserver index 51090ac..fbbd74e 100755 --- a/client/git-simpleserver +++ b/client/git-simpleserver @@ -407,6 +407,7 @@ prepare_config() { } CONFIG_FILE_PATH="$HOME/.git-simpleserver/config.yaml" +set +u case "$1" in "--config" | "-c") shift @@ -414,6 +415,7 @@ case "$1" in shift ;; esac +set -u if [ ! -f "$CONFIG_FILE_PATH" ]; then echo "Config file '$CONFIG_FILE_PATH' does not exist" exit 1