bootstrap: fix improper symlink path to enabled topics
This commit is contained in:
parent
d34ec22c3c
commit
98783ef7ef
|
@ -154,11 +154,12 @@ for topic in ${@:-$(find "$ENABLED_DIR" -maxdepth 1 -type l)}; do
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Link topic to .enabled.d
|
# Link topic to .enabled.d
|
||||||
if [[ -h "$ENABLED_DIR/$tname" ]]; then
|
linkpath="${ENABLED_DIR}/${tpath##*/}"
|
||||||
[[ "$update" && -x $tpath/update ]] && _run "$tpath/update"
|
if [[ -h "$linkpath" ]]; then
|
||||||
|
[[ "$update" && -x ${linkpath}/update ]] && _run "$linkpath/update"
|
||||||
else
|
else
|
||||||
# Register topic as 'enabled'
|
# Register topic as 'enabled'
|
||||||
_run ln -svf "$tpath" "$ENABLED_DIR/$tname"
|
(( $# > 0 )) && _run ln -svf "$tpath" "$ENABLED_DIR/$tname"
|
||||||
|
|
||||||
# Run install script
|
# Run install script
|
||||||
[[ "$install" && -x $tpath/install ]] && _run "$tpath/install"
|
[[ "$install" && -x $tpath/install ]] && _run "$tpath/install"
|
||||||
|
|
Loading…
Reference in a new issue