diff options
author | Ionen Wolkens <ionen@gentoo.org> | 2024-10-22 12:40:50 -0400 |
---|---|---|
committer | Ionen Wolkens <ionen@gentoo.org> | 2024-10-22 12:50:59 -0400 |
commit | 8442cf3a86d5af1458541664bfd156b4cde6beae (patch) | |
tree | 52ebbdc5409daadb58eff663c1dbbfb2aa35a51d | |
parent | x11-drivers/nvidia-drivers: add 565.57.01 (unkeyworded beta) (diff) | |
download | gentoo-8442cf3a86d5af1458541664bfd156b4cde6beae.tar.gz gentoo-8442cf3a86d5af1458541664bfd156b4cde6beae.tar.bz2 gentoo-8442cf3a86d5af1458541664bfd156b4cde6beae.zip |
x11-drivers/nvidia-drivers: silence realpath errors
One path does not exist on systemd systems and it's noisy.
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
8 files changed, 16 insertions, 16 deletions
diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-470.256.02-r1.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-470.256.02-r1.ebuild index 275d920a47af..5245c34c4a82 100644 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-470.256.02-r1.ebuild +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-470.256.02-r1.ebuild @@ -472,8 +472,8 @@ pkg_postinst() { ewarn "installed by the ebuild to handle sleep using the official upstream" ewarn "script. It is recommended to disable the option." fi - if [[ $(realpath "${EROOT}"{/etc,{/usr,}/lib*}/elogind/system-sleep | sort | uniq | \ - xargs -d'\n' grep -Ril nvidia 2>/dev/null | wc -l) -gt 2 ]] + if [[ $(realpath "${EROOT}"{/etc,{/usr,}/lib*}/elogind/system-sleep 2>/dev/null | \ + sort | uniq | xargs -d'\n' grep -Ril nvidia 2>/dev/null | wc -l) -gt 2 ]] then ewarn ewarn "!!! WARNING !!!" diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-525.147.05-r1.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-525.147.05-r1.ebuild index 01a2151532d0..b4f1801cfdf9 100644 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-525.147.05-r1.ebuild +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-525.147.05-r1.ebuild @@ -555,8 +555,8 @@ pkg_postinst() { ewarn "installed by the ebuild to handle sleep using the official upstream" ewarn "script. It is recommended to disable the option." fi - if [[ $(realpath "${EROOT}"{/etc,{/usr,}/lib*}/elogind/system-sleep | sort | uniq | \ - xargs -d'\n' grep -Ril nvidia 2>/dev/null | wc -l) -gt 2 ]] + if [[ $(realpath "${EROOT}"{/etc,{/usr,}/lib*}/elogind/system-sleep 2>/dev/null | \ + sort | uniq | xargs -d'\n' grep -Ril nvidia 2>/dev/null | wc -l) -gt 2 ]] then ewarn ewarn "!!! WARNING !!!" diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-535.183.01-r1.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-535.183.01-r1.ebuild index 88c464ba67aa..5c95af31807c 100644 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-535.183.01-r1.ebuild +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-535.183.01-r1.ebuild @@ -555,8 +555,8 @@ pkg_postinst() { ewarn "installed by the ebuild to handle sleep using the official upstream" ewarn "script. It is recommended to disable the option." fi - if [[ $(realpath "${EROOT}"{/etc,{/usr,}/lib*}/elogind/system-sleep | sort | uniq | \ - xargs -d'\n' grep -Ril nvidia 2>/dev/null | wc -l) -gt 2 ]] + if [[ $(realpath "${EROOT}"{/etc,{/usr,}/lib*}/elogind/system-sleep 2>/dev/null | \ + sort | uniq | xargs -d'\n' grep -Ril nvidia 2>/dev/null | wc -l) -gt 2 ]] then ewarn ewarn "!!! WARNING !!!" diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-550.120.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-550.120.ebuild index 3f3a793e9960..39be92964955 100644 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-550.120.ebuild +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-550.120.ebuild @@ -546,8 +546,8 @@ pkg_postinst() { ewarn "installed by the ebuild to handle sleep using the official upstream" ewarn "script. It is recommended to disable the option." fi - if [[ $(realpath "${EROOT}"{/etc,{/usr,}/lib*}/elogind/system-sleep | sort | uniq | \ - xargs -d'\n' grep -Ril nvidia 2>/dev/null | wc -l) -gt 2 ]] + if [[ $(realpath "${EROOT}"{/etc,{/usr,}/lib*}/elogind/system-sleep 2>/dev/null | \ + sort | uniq | xargs -d'\n' grep -Ril nvidia 2>/dev/null | wc -l) -gt 2 ]] then ewarn ewarn "!!! WARNING !!!" diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-550.127.05.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-550.127.05.ebuild index a38e5cb6eaf5..f7a0adc69ccb 100644 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-550.127.05.ebuild +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-550.127.05.ebuild @@ -546,8 +546,8 @@ pkg_postinst() { ewarn "installed by the ebuild to handle sleep using the official upstream" ewarn "script. It is recommended to disable the option." fi - if [[ $(realpath "${EROOT}"{/etc,{/usr,}/lib*}/elogind/system-sleep | sort | uniq | \ - xargs -d'\n' grep -Ril nvidia 2>/dev/null | wc -l) -gt 2 ]] + if [[ $(realpath "${EROOT}"{/etc,{/usr,}/lib*}/elogind/system-sleep 2>/dev/null | \ + sort | uniq | xargs -d'\n' grep -Ril nvidia 2>/dev/null | wc -l) -gt 2 ]] then ewarn ewarn "!!! WARNING !!!" diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-550.40.76.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-550.40.76.ebuild index 3d6eb1baaf8d..91f9b1aa066e 100644 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-550.40.76.ebuild +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-550.40.76.ebuild @@ -549,8 +549,8 @@ pkg_postinst() { ewarn "installed by the ebuild to handle sleep using the official upstream" ewarn "script. It is recommended to disable the option." fi - if [[ $(realpath "${EROOT}"{/etc,{/usr,}/lib*}/elogind/system-sleep | sort | uniq | \ - xargs -d'\n' grep -Ril nvidia 2>/dev/null | wc -l) -gt 2 ]] + if [[ $(realpath "${EROOT}"{/etc,{/usr,}/lib*}/elogind/system-sleep 2>/dev/null | \ + sort | uniq | xargs -d'\n' grep -Ril nvidia 2>/dev/null | wc -l) -gt 2 ]] then ewarn ewarn "!!! WARNING !!!" diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-560.35.03-r1.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-560.35.03-r1.ebuild index 3d81beee2a90..9a3cb1ef33e3 100644 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-560.35.03-r1.ebuild +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-560.35.03-r1.ebuild @@ -562,8 +562,8 @@ pkg_postinst() { ewarn "installed by the ebuild to handle sleep using the official upstream" ewarn "script. It is recommended to disable the option." fi - if [[ $(realpath "${EROOT}"{/etc,{/usr,}/lib*}/elogind/system-sleep | sort | uniq | \ - xargs -d'\n' grep -Ril nvidia 2>/dev/null | wc -l) -gt 2 ]] + if [[ $(realpath "${EROOT}"{/etc,{/usr,}/lib*}/elogind/system-sleep 2>/dev/null | \ + sort | uniq | xargs -d'\n' grep -Ril nvidia 2>/dev/null | wc -l) -gt 2 ]] then ewarn ewarn "!!! WARNING !!!" diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-565.57.01.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-565.57.01.ebuild index 910fdc5bc84d..f9ce1a16cbf2 100644 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-565.57.01.ebuild +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-565.57.01.ebuild @@ -571,8 +571,8 @@ pkg_postinst() { ewarn "installed by the ebuild to handle sleep using the official upstream" ewarn "script. It is recommended to disable the option." fi - if [[ $(realpath "${EROOT}"{/etc,{/usr,}/lib*}/elogind/system-sleep | sort | uniq | \ - xargs -d'\n' grep -Ril nvidia 2>/dev/null | wc -l) -gt 2 ]] + if [[ $(realpath "${EROOT}"{/etc,{/usr,}/lib*}/elogind/system-sleep 2>/dev/null | \ + sort | uniq | xargs -d'\n' grep -Ril nvidia 2>/dev/null | wc -l) -gt 2 ]] then ewarn ewarn "!!! WARNING !!!" |