From 4e98ea159f0037910562fbb43b4557244e154498 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Mon, 17 Jun 2024 12:22:39 +0300 Subject: [PATCH] tf-next: Small fix. Fail if there is no next workspace, breaks loops. --- .bashrc.d/terraform | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bashrc.d/terraform b/.bashrc.d/terraform index 462ee86..f61e887 100644 --- a/.bashrc.d/terraform +++ b/.bashrc.d/terraform @@ -16,7 +16,7 @@ tf-next () { if [ -z "${next}" ] then red "Last workspace." - return + return 1 fi tf workspace select "$next" } -- GitLab