From ac194e4603a9222ce0b93d54c89db8b61ac419f8 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Fri, 29 Nov 2019 13:44:08 +0100 Subject: [conf-tgz] do not fail if config.tgz does not exist --- builder/modules.d/conf-tgz/hooks/unpack-config-tgz.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/builder/modules.d/conf-tgz/hooks/unpack-config-tgz.sh b/builder/modules.d/conf-tgz/hooks/unpack-config-tgz.sh index 5cc074bc..1516ed3e 100755 --- a/builder/modules.d/conf-tgz/hooks/unpack-config-tgz.sh +++ b/builder/modules.d/conf-tgz/hooks/unpack-config-tgz.sh @@ -16,6 +16,7 @@ tarcopy() { unpack_config_tgz() { local config_tgz="/etc/config.tgz" + [ -e "$config_tgz" ] || return 1 local extract_dir="$(mktemp -d)" tar --extract --preserve-permissions \ --file="/etc/config.tgz" \ -- cgit v1.2.3-55-g7522