diff options
Diffstat (limited to 'scripts/build-vyos-image')
-rwxr-xr-x | scripts/build-vyos-image | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/build-vyos-image b/scripts/build-vyos-image index 5242a7dd..a9027934 100755 --- a/scripts/build-vyos-image +++ b/scripts/build-vyos-image @@ -383,9 +383,9 @@ if __name__ == "__main__": # Add custom APT entries if not args['custom_apt_entry']: args['custom_apt_entry'] = [] - if build_config['additional_repositories']: + if build_config.get('additional_repositories', False): args['custom_apt_entry'] = args['custom_apt_entry'] + build_config['additional_repositories'] - if build_config['custom_apt_entry']: + if build_config.get('custom_apt_entry', False): custom_apt_file = defaults.CUSTOM_REPO_FILE entries = "\n".join(build_config['custom_apt_entry']) if debug: |