diff options
Diffstat (limited to 'sh/rc-functions.sh')
-rwxr-xr-x | sh/rc-functions.sh | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sh/rc-functions.sh b/sh/rc-functions.sh index 586471dd..632060ad 100755 --- a/sh/rc-functions.sh +++ b/sh/rc-functions.sh @@ -6,11 +6,8 @@ has_addon() { } import_addon() { - if has_addon "$1" ; then - . "${RC_LIBDIR}/addons/$1.sh" - return 0 - fi - return 1 + has_addon "$1" || return 1 + . "${RC_LIBDIR}/addons/$1.sh" } start_addon() { |