mirror of
https://github.com/natelandau/shell-scripting-templates.git
synced 2025-11-12 23:13:48 -05:00
fix spelling errors
This commit is contained in:
@@ -3,7 +3,7 @@ _execute_() {
|
||||
# ARGS: $1 (Required) - The command to be executed. Quotation marks MUST be escaped.
|
||||
# $2 (Optional) - String to display after command is executed
|
||||
# OPTS: -v Always print debug output from the execute function
|
||||
# -p Pass a failed command with 'return 0'. This effecively bypasses set -e.
|
||||
# -p Pass a failed command with 'return 0'. This effectively bypasses set -e.
|
||||
# -e Bypass _alert_ functions and use 'echo RESULT'
|
||||
# -s Use '_alert_ success' for successful output. (default is 'info')
|
||||
# -q Do not print output (QUIET mode)
|
||||
|
||||
@@ -7,7 +7,7 @@ _listFiles_() {
|
||||
# NOTE: Searches are NOT case sensitive and MUST be quoted
|
||||
# USAGE: _listFiles_ glob "*.txt" "some/backup/dir"
|
||||
# _listFiles_ regex ".*\.txt" "some/backup/dir"
|
||||
# readarry -t array < <(_listFiles_ g "*.txt")
|
||||
# readarray -t array < <(_listFiles_ g "*.txt")
|
||||
|
||||
[[ $# -lt 2 ]] && {
|
||||
error 'Missing required argument to _listFiles_()!'
|
||||
@@ -446,7 +446,7 @@ _makeSymlink_() {
|
||||
}
|
||||
|
||||
_parseYAML_() {
|
||||
# DESC: Convert a YANML file into BASH variables for use in a shell script
|
||||
# DESC: Convert a YAML file into BASH variables for use in a shell script
|
||||
# ARGS: $1 (Required) - Source YAML file
|
||||
# $2 (Required) - Prefix for the variables to avoid namespace collisions
|
||||
# OUTS: Prints variables and arrays derived from YAML File
|
||||
|
||||
@@ -18,7 +18,7 @@ _cleanString_() {
|
||||
# - leading white space
|
||||
# - trailing white space
|
||||
# - multiple spaces become a single space
|
||||
# - remove spaces before and aftrer -_
|
||||
# - remove spaces before and after -_
|
||||
|
||||
local opt
|
||||
local lc=false
|
||||
|
||||
Reference in New Issue
Block a user