From 9b76cadefbbe15f2786e907b790d0af438fb38fb Mon Sep 17 00:00:00 2001 From: Tyler Akins Date: Tue, 25 Oct 2016 05:59:52 -0500 Subject: [PATCH] Logically simpler, functionally equivalent. --- mo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mo b/mo index e52f9d2..4b9652a 100755 --- a/mo +++ b/mo @@ -898,6 +898,6 @@ MO_ORIGINAL_COMMAND="$(cd "${BASH_SOURCE%/*}" || exit 1; pwd)/${BASH_SOURCE##*/} # If sourced, load all functions. # If executed, perform the actions as expected. -if [[ "$0" == "${BASH_SOURCE[0]}" ]] || ! [[ -n "${BASH_SOURCE[0]}" ]]; then +if [[ "$0" == "${BASH_SOURCE[0]}" ]] || [[ -z "${BASH_SOURCE[0]}" ]]; then mo "$@" fi