mirror of
https://github.com/FliegendeWurst/tmux-thumbs.git
synced 2024-11-10 00:00:36 +00:00
Fix installation bug in tag 0.7.0
bbf677fda3
("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.
This commit is contained in:
parent
bbf677fda3
commit
19f30d7b22
@ -4,7 +4,7 @@ set -Eeu -o pipefail
|
|||||||
# Setup env variables to be compatible with compiled and bundled installations
|
# Setup env variables to be compatible with compiled and bundled installations
|
||||||
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
|
||||||
if [ -d .git ]; then
|
if [ -d ${CURRENT_DIR}/.git ]; then
|
||||||
RELEASE_DIR="${CURRENT_DIR}/target/release"
|
RELEASE_DIR="${CURRENT_DIR}/target/release"
|
||||||
else
|
else
|
||||||
RELEASE_DIR=${CURRENT_DIR}
|
RELEASE_DIR=${CURRENT_DIR}
|
||||||
|
Loading…
Reference in New Issue
Block a user