From 201e829bcb6eb3f0f93be9a2660c36203453c032 Mon Sep 17 00:00:00 2001 From: Olivier Grand Date: Mon, 30 May 2022 18:23:28 +0200 Subject: [PATCH] fix alias --- bosh-cli/profile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bosh-cli/profile b/bosh-cli/profile index dc41e29..6a41479 100644 --- a/bosh-cli/profile +++ b/bosh-cli/profile @@ -170,7 +170,7 @@ alias push='git pull --rebase ; git fetch --prune ; git push' alias status='git status' #--- Cli aliases -alias bosh-clean-prometheus-tasks='for var in $(bosh tasks | grep "queued" | grep "prometheus" | awk "{print $1}") ; do bosh cancel-task $var ; done' +alias bosh-clean-prometheus-tasks='for var in $(bosh tasks | grep "queued" | grep "prometheus" | sed -e "s+\t.*++g") ; do bosh cancel-task $var ; done' alias bosh-task='function __bt() { bosh task $1 --debug | grep -vE " BEGIN| COMMIT| SELECT |INSERT INTO|DELETE FROM| UPDATE | WHERE |Renewing lock"; }; __bt' alias credhub-get='function __cg() { log-credhub -i ; credhub get -n $1 -j | jq .value -r; }; __cg' alias fly='fly -t concourse'