From 08c72f680bf0ea205a91c092138c1e1b50d399f1 Mon Sep 17 00:00:00 2001 From: John D Pell Date: Mon, 27 Dec 2021 15:29:03 -0800 Subject: [PATCH] `shfmt` --- lib/utilities.bash | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/utilities.bash b/lib/utilities.bash index 96fbb752..50d02c31 100644 --- a/lib/utilities.bash +++ b/lib/utilities.bash @@ -3,11 +3,10 @@ # A collection of reusable functions. # Avoid duplicate inclusion -if [[ "${__bash_it_lib_loaded[*]:-}" == *"${BASH_SOURCE#*/}"* ]] -then - return 0 +if [[ "${__bash_it_lib_loaded[*]:-}" == *"${BASH_SOURCE#*/}"* ]]; then + return 0 fi -__bash_it_lib_loaded=( "${BASH_SOURCE#*/}" "${__bash_it_lib_loaded[@]:-}" ) +__bash_it_lib_loaded=("${BASH_SOURCE#*/}" "${__bash_it_lib_loaded[@]:-}") ########################################################################### # Generic utilies