diff options
author | Patrick Spek <p.spek@tyil.nl> | 2022-05-11 13:25:55 +0200 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2022-05-11 13:25:55 +0200 |
commit | ca71525e575f809c77d84550a3e8abc100dfb5a4 (patch) | |
tree | 8fd4d632070bbb188b284bbb97189426d2ded1a5 /lib | |
parent | b3c98a0f9dae4eb1e6078df4a0c55a9e892ae56e (diff) |
Allow package names to not be explicitly defined as configuration values
Diffstat (limited to 'lib')
-rw-r--r-- | lib/util/pkg.bash | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/util/pkg.bash b/lib/util/pkg.bash index 618ce6a..de70f78 100644 --- a/lib/util/pkg.bash +++ b/lib/util/pkg.bash @@ -6,12 +6,12 @@ pkg() { local action=$1 ; shift local pkg - pkg="$(config "pkg.$1")" ; shift + pkg="$(config "pkg.$1")" if [[ -z $pkg ]] then - crit "$system" "No package name for $pkg" - return 1 + warn "$system" "No explicit package name for $1" + pkg="$1" fi if [[ "$(type -t "pkg_$action")" != "function" ]] |