From dade67ed5b49b0ed8096beae78850f492105c650 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Thu, 4 Feb 2021 13:17:39 +0100 Subject: use `command -v` --- install/archlogo | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'install/archlogo') diff --git a/install/archlogo b/install/archlogo index a84e32a..40768b6 100644 --- a/install/archlogo +++ b/install/archlogo @@ -4,7 +4,8 @@ build() { source /etc/archlogo.conf add_file /etc/archlogo.conf add_file "/usr/share/archlogo/${ARCHLOGO}" - if add_systemd_unit archlogo.service 2>/dev/null; then + if command -v add_systemd_unit >/dev/null; then + add_systemd_unit "archlogo.service" add_symlink "/usr/lib/systemd/system/sysinit.target.wants/archlogo.service" "../archlogo.service" else add_runscript -- cgit v1.2.3-70-g09d2