From 62036d62c2ee3b10d93a2c401ed636623c5ba869 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Fri, 26 Apr 2024 15:38:22 +0200 Subject: [PATCH] fixes --- cd.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cd.sh b/cd.sh index 819404e..ec6cf1a 100644 --- a/cd.sh +++ b/cd.sh @@ -1,3 +1,5 @@ +#! /usr/bin/env bash + CD_DNS_SERVERS=( '9.9.9.9' ) @@ -25,7 +27,7 @@ CD_STEP=0 function cd_step { if [ "${1}" ] ; then - CD_STEP=$((CD_STEP+1)) + ((CD_STEP++)) echo " ↕ ${CD_STEP} ↔ ${1} "