Treating BASH_SOURCE like an array

This commit is contained in:
Tyler Akins 2016-10-25 06:11:33 -05:00
parent 9b76cadefb
commit 05110ce3ca
No known key found for this signature in database
GPG Key ID: 8F3B8C432F4393BD

2
mo
View File

@ -894,7 +894,7 @@ moUsage() {
# Save the original command's path for usage later # Save the original command's path for usage later
MO_ORIGINAL_COMMAND="$(cd "${BASH_SOURCE%/*}" || exit 1; pwd)/${BASH_SOURCE##*/}" MO_ORIGINAL_COMMAND="$(cd "${BASH_SOURCE[0]%/*}" || exit 1; pwd)/${BASH_SOURCE[0]##*/}"
# If sourced, load all functions. # If sourced, load all functions.
# If executed, perform the actions as expected. # If executed, perform the actions as expected.