Skip to content

Commit

Permalink
update revoke.sh
Browse files Browse the repository at this point in the history
cleanup variables for consistency
  • Loading branch information
acavella committed Dec 28, 2023
1 parent c8a0c9a commit 0478581
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions revoke.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ set -o nounset
ver=$(<VERSION)

baseDir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
fileDTG=$(date '+%Y%m%d-%H%M%S')
dtg=$(date '+%Y%m%d-%H%M%S')
config="${baseDir}/conf/revoke.yml"
log="${baseDir}/logs/revoke_${fileDTG}.log"
log="${baseDir}/logs/revoke_${dtg}.log"
wwwdir=$(./lib/yq4 -r .default.www ${config})
arraySize=$(./lib/yq4 '.ca | length' ${config})
defGW=$(./lib/yq4 -r .default.gateway ${config})
defgw=$(./lib/yq4 -r .default.gateway ${config})

## FUNCTIONS

Expand Down Expand Up @@ -54,7 +54,7 @@ check_config() {
}

check_network() {
ping -c 1 $defGW >/dev/null 2>&1;
ping -c 1 $defgw >/dev/null 2>&1;
pingExit=$?
if [ $pingExit -eq 0 ]
then
Expand Down

0 comments on commit 0478581

Please sign in to comment.