aboutsummaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
Diffstat (limited to 'sh')
-rwxr-xr-xsh/rc-functions.sh7
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() {