From 0aa45b3799a5379f9c7097c4b1a52a6ccbb0737b Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 13 Sep 2024 17:11:35 +0200 Subject: discard stderr from systemd-detect-virt --- bin/pacman-offline | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/pacman-offline b/bin/pacman-offline index 3d218f9..cb46cb4 100755 --- a/bin/pacman-offline +++ b/bin/pacman-offline @@ -41,7 +41,7 @@ while getopts 'acfhprty' opt; do esac done -if systemd-detect-virt --chroot; then +if systemd-detect-virt --chroot 2>/dev/null; then echo 'Running in chroot, skipping.' >&2 exit 0 fi -- cgit v1.2.3-70-g09d2