From beb4f22aaa8b0dddbb55204e47df6e633c4e0710 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Sat, 20 Jan 2024 09:13:00 +0100 Subject: [PATCH] disable node deprecations in chezmoiupdate function --- .../fish/private_functions/chezmoiupdate.fish | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/dot_config/fish/private_functions/chezmoiupdate.fish b/dot_config/fish/private_functions/chezmoiupdate.fish index 4060fc4..898e250 100644 --- a/dot_config/fish/private_functions/chezmoiupdate.fish +++ b/dot_config/fish/private_functions/chezmoiupdate.fish @@ -1,9 +1,10 @@ function chezmoiupdate -if not bw login --check -set -x BW_SESSION (bw login --raw) -end -if not bw unlock --check -set -x BW_SESSION (bw unlock --raw) -end -chezmoi update + set -x NODE_OPTIONS "--no-deprecation" + if not bw login --check + set -x BW_SESSION (bw login --raw) + end + if not bw unlock --check + set -x BW_SESSION (bw unlock --raw) + end + chezmoi update end