From 19f30d7b2274fecd678c1037ac52d618326dd585 Mon Sep 17 00:00:00 2001 From: Javi Merino Date: Mon, 31 Jan 2022 10:12:00 +0000 Subject: [PATCH] Fix installation bug in tag 0.7.0 bbf677fda318 ("Improve the matrix of releases") included a fix to cope with compiled and bundled installations. However, the check for the .git/ repository is done from where tmux is launched, not where tmux-thumbs is installed, so RELEASE_DIR is not properly set always. This leads to tmux-thumbs always trying to install itself when installed via tmux-plugin-manager. --- tmux-thumbs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tmux-thumbs.sh b/tmux-thumbs.sh index 6c1b89c..83255d3 100755 --- a/tmux-thumbs.sh +++ b/tmux-thumbs.sh @@ -4,7 +4,7 @@ set -Eeu -o pipefail # Setup env variables to be compatible with compiled and bundled installations CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -if [ -d .git ]; then +if [ -d ${CURRENT_DIR}/.git ]; then RELEASE_DIR="${CURRENT_DIR}/target/release" else RELEASE_DIR=${CURRENT_DIR}