hide node warnings in bw functions

This commit is contained in:
Gabriel Augendre 2024-02-18 16:18:04 +01:00
parent 0342ab1ed7
commit e5bf69149d
4 changed files with 4 additions and 0 deletions

View file

@ -1,4 +1,5 @@
function chezmoiapply function chezmoiapply
set -x NODE_OPTIONS "--no-deprecation"
bwunlock bwunlock
chezmoi apply chezmoi apply
end end

View file

@ -1,4 +1,5 @@
function chezmoiupdate function chezmoiupdate
set -x NODE_OPTIONS "--no-deprecation"
bwunlock bwunlock
chezmoi update chezmoi update
end end

View file

@ -1,4 +1,5 @@
function fetchkeys function fetchkeys
set -x NODE_OPTIONS "--no-deprecation"
bwunlock bwunlock
set key_item (bw list items --search "SSH Main" | jq ".[0]" --raw-output) set key_item (bw list items --search "SSH Main" | jq ".[0]" --raw-output)
set key_item_id (echo $key_item | jq ".id" --raw-output) set key_item_id (echo $key_item | jq ".id" --raw-output)

View file

@ -1,4 +1,5 @@
function upgrade --wraps=topgrade function upgrade --wraps=topgrade
set -x NODE_OPTIONS "--no-deprecation"
bwunlock bwunlock
{{- if get . "sudo" }} {{- if get . "sudo" }}
sudo ls >/dev/null sudo ls >/dev/null