From 9954e482b420c284ba09fe4393a2c98d2087d7ce Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Mon, 15 Aug 2022 11:25:26 +0100 Subject: [PATCH] Don't warn about bash deprecation on MacOS --- roles/home-cli/files/bashrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/roles/home-cli/files/bashrc b/roles/home-cli/files/bashrc index 088c14e..8c439b0 100644 --- a/roles/home-cli/files/bashrc +++ b/roles/home-cli/files/bashrc @@ -69,6 +69,11 @@ export PAPERSIZE=a4 export POWERSHELL_TELEMETRY_OPTOUT=1 export PYTHONWARNINGS=ignore::UserWarning +if [ "$(uname -s)" == "Darwin" ] +then + export BASH_SILENCE_DEPRECATION_WARNING=1 +fi + # Override this in ~/.config/bashrc or ~/.ssh/config. export LIBVIRT_DEFAULT_URI="qemu+ssh://vmhost/system"