From 98783ef7ef52f5c70bbc9037c6cbb69802e77c5c Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 6 Jan 2017 19:46:14 -0500 Subject: [PATCH] bootstrap: fix improper symlink path to enabled topics --- bootstrap | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bootstrap b/bootstrap index 40560c05..564f069c 100755 --- a/bootstrap +++ b/bootstrap @@ -154,11 +154,12 @@ for topic in ${@:-$(find "$ENABLED_DIR" -maxdepth 1 -type l)}; do fi # Link topic to .enabled.d - if [[ -h "$ENABLED_DIR/$tname" ]]; then - [[ "$update" && -x $tpath/update ]] && _run "$tpath/update" + linkpath="${ENABLED_DIR}/${tpath##*/}" + if [[ -h "$linkpath" ]]; then + [[ "$update" && -x ${linkpath}/update ]] && _run "$linkpath/update" else # Register topic as 'enabled' - _run ln -svf "$tpath" "$ENABLED_DIR/$tname" + (( $# > 0 )) && _run ln -svf "$tpath" "$ENABLED_DIR/$tname" # Run install script [[ "$install" && -x $tpath/install ]] && _run "$tpath/install"