summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2024-09-13 17:11:35 +0200
committerGravatar Christian Hesse <mail@eworm.de>2024-09-13 17:11:35 +0200
commit0aa45b3799a5379f9c7097c4b1a52a6ccbb0737b (patch)
tree156527b364b171430b5e3f44df8f70fa78db7b64
parentb07a25fa91dfa9ad07de6e6698c1a15b03ef4a65 (diff)
downloadpacman-offline-0aa45b3799a5379f9c7097c4b1a52a6ccbb0737b.tar.gz
pacman-offline-0aa45b3799a5379f9c7097c4b1a52a6ccbb0737b.tar.zst
discard stderr from systemd-detect-virt
-rwxr-xr-xbin/pacman-offline2
1 files changed, 1 insertions, 1 deletions
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