summaryrefslogtreecommitdiff
path: root/scripts/build/lb_config
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2012-07-28 20:37:19 +0200
committerDaniel Baumann <daniel@debian.org>2012-07-28 20:37:19 +0200
commit28cd477e7edf84936bfe7670ff4a7c052df35b9a (patch)
tree728c0cf29a813cdc6a599cc169bd1b3bc777cb18 /scripts/build/lb_config
parent189ea002e45c6385f80b347de83c7cb21c88615e (diff)
downloadvyos-live-build-28cd477e7edf84936bfe7670ff4a7c052df35b9a.tar.gz
vyos-live-build-28cd477e7edf84936bfe7670ff4a7c052df35b9a.zip
Showing a message about ignoring --config when the current directory already is a git repository.
Diffstat (limited to 'scripts/build/lb_config')
-rwxr-xr-xscripts/build/lb_config3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/build/lb_config b/scripts/build/lb_config
index b3524e5ea..dbc7d8a71 100755
--- a/scripts/build/lb_config
+++ b/scripts/build/lb_config
@@ -870,8 +870,9 @@ Local_arguments ()
Local_arguments "${@}"
-if [ -e .git ]
+if [ -e .git ] && [ -n "${_CONFIG}" ]
then
+ Echo_message "Ignoring --config ${_CONFIG}: ${PWD} is already a git repository"
_CONFIG=""
fi