Skip to content

Commit

Permalink
Treating BASH_SOURCE like an array
Browse files Browse the repository at this point in the history
  • Loading branch information
fidian committed Oct 25, 2016
1 parent 9b76cad commit 05110ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mo
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,7 @@ moUsage() {


# 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 executed, perform the actions as expected.
Expand Down

0 comments on commit 05110ce

Please sign in to comment.