diff --git a/mo b/mo index 4b9652a..66f6968 100755 --- a/mo +++ b/mo @@ -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.