mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-04 00:48:33 +00:00
chore: shfmt, cleanup
This commit is contained in:
@@ -1,19 +1,19 @@
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# Shared bash functions and helpers
|
||||
# that can be sourced to other scripts.
|
||||
# Shared bash functions and helpers.
|
||||
|
||||
# Helper env variables. Use like this: VERBOSE=1 ./script.sh
|
||||
: "${VERBOSE:=0}"
|
||||
|
||||
# Set variable that checks if the shared.sh script has been sourced only once
|
||||
# If the script has been sourced more than once, the script not be sourced again
|
||||
# Set variable that checks if the shared.sh script has been
|
||||
# sourced only once If the script has been sourced more than once,
|
||||
# the script not be sourced again.
|
||||
[ -z "$SHARED_SCRIPTS_SOURCED" ] && {
|
||||
|
||||
source "${DOTFILES}/config/shared.sh"
|
||||
msgr warn "(!) shared.sh not sourced"
|
||||
|
||||
# Set variable that checks if the shared.sh script has been sourced only once
|
||||
# Set variable that checks if the shared.sh script has been
|
||||
# sourced only once.
|
||||
# shellcheck disable=SC2034
|
||||
export SHARED_SCRIPTS_SOURCED=1
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user