bootstrap: fix improper symlink path to enabled topics

This commit is contained in:
Henrik Lissner 2017-01-06 19:46:14 -05:00
parent d34ec22c3c
commit 98783ef7ef

View file

@ -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"