summaryrefslogtreecommitdiff
path: root/functions/init.sh
diff options
context:
space:
mode:
authorLyndon Brown <jnqnfe@gmail.com>2020-05-02 14:49:45 +0100
committerLyndon Brown <jnqnfe@gmail.com>2020-05-02 14:49:45 +0100
commit2d7ff4934d721f38ac5274c866e44e20d3bda2e8 (patch)
treeceff49ad2a9dc8496207102412a0195aae867f3b /functions/init.sh
parentb20979334cc28c345b2b72da30c3591fb5c85882 (diff)
downloadvyos-live-build-2d7ff4934d721f38ac5274c866e44e20d3bda2e8.tar.gz
vyos-live-build-2d7ff4934d721f38ac5274c866e44e20d3bda2e8.zip
improve stagefiles encapsulation
- added and used Stagefiles_dir() - added and used Stagefile_exists() pretty self explanatory. Gbp-Dch: Short
Diffstat (limited to 'functions/init.sh')
-rwxr-xr-xfunctions/init.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/functions/init.sh b/functions/init.sh
index d39bf1b5a..708e3d275 100755
--- a/functions/init.sh
+++ b/functions/init.sh
@@ -12,7 +12,7 @@
Auto_build_config ()
{
# Automatically build config
- if [ -x auto/config ] && [ ! -e .build/config ]; then
+ if [ -x auto/config ] && ! Stagefile_exists config; then
Echo_message "Automatically populating config tree."
lb config
fi