diff options
author | Lyndon Brown <jnqnfe@gmail.com> | 2020-05-02 14:49:45 +0100 |
---|---|---|
committer | Lyndon Brown <jnqnfe@gmail.com> | 2020-05-02 14:49:45 +0100 |
commit | 2d7ff4934d721f38ac5274c866e44e20d3bda2e8 (patch) | |
tree | ceff49ad2a9dc8496207102412a0195aae867f3b /functions/init.sh | |
parent | b20979334cc28c345b2b72da30c3591fb5c85882 (diff) | |
download | vyos-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-x | functions/init.sh | 2 |
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 |