diff options
author | Jonathan Bauer | 2019-11-29 13:44:08 +0100 |
---|---|---|
committer | Jonathan Bauer | 2019-11-29 13:44:08 +0100 |
commit | ac194e4603a9222ce0b93d54c89db8b61ac419f8 (patch) | |
tree | a9ecef8079a11c8578f738c5ddab901bbe97769b /builder/modules.d/conf-tgz/hooks/unpack-config-tgz.sh | |
parent | use master branch on master :) (diff) | |
download | systemd-init-ac194e4603a9222ce0b93d54c89db8b61ac419f8.tar.gz systemd-init-ac194e4603a9222ce0b93d54c89db8b61ac419f8.tar.xz systemd-init-ac194e4603a9222ce0b93d54c89db8b61ac419f8.zip |
[conf-tgz] do not fail if config.tgz does not exist
Diffstat (limited to 'builder/modules.d/conf-tgz/hooks/unpack-config-tgz.sh')
-rwxr-xr-x | builder/modules.d/conf-tgz/hooks/unpack-config-tgz.sh | 1 |
1 files changed, 1 insertions, 0 deletions
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" \ |