build: lint for typos

This commit is contained in:
Nathaniel Landau
2023-08-29 10:43:38 -04:00
parent fea8ce4e5c
commit 64c8658c8e
11 changed files with 45 additions and 17 deletions

View File

@@ -8,7 +8,7 @@ _backupFile_() {
# $1 (Required) - Source file
# $2 (Optional) - Destination dir name used only with -d flag (defaults to ./backup)
# OPTS:
# -d - Move files to a backup direcory
# -d - Move files to a backup directory
# -m - Replaces copy (default) with move, effectively removing the original file
# REQUIRES:
# _execute_
@@ -84,7 +84,7 @@ _createUniqueFilename_() {
# filenames by incrementing a number at the end of the filename
# ARGS:
# $1 (Required) - Name of file to be created
# $2 (Optional) - Separation characted (Defaults to a period '.')
# $2 (Optional) - Separation character (Defaults to a period '.')
# OUTS:
# stdout: Unique name of file
# 0 if successful

View File

@@ -307,9 +307,9 @@ _splitString_() (
declare -a _arr=()
local _input="${1}"
local _delimeter="${2}"
local _delimiter="${2}"
IFS="${_delimeter}" read -r -a _arr <<<"${_input}"
IFS="${_delimiter}" read -r -a _arr <<<"${_input}"
printf '%s\n' "${_arr[@]}"
)