From 30332265138fe728254a180f0977cdbab4ce8b76 Mon Sep 17 00:00:00 2001 From: Ferran Basora Date: Wed, 2 Feb 2022 23:09:02 +0100 Subject: [PATCH] Update tmux-thumbs.sh Fix an issue with current dir --- tmux-thumbs.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tmux-thumbs.sh b/tmux-thumbs.sh index 34dd528..1a650a6 100755 --- a/tmux-thumbs.sh +++ b/tmux-thumbs.sh @@ -1,14 +1,13 @@ #!/usr/bin/env bash set -Eeu -o pipefail -VERSION=$(grep 'version =' Cargo.toml | grep -oe "[0-9]\+.[0-9]\+.[0-9]\+") - # Setup env variables to be compatible with compiled and bundled installations CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" RELEASE_DIR="${CURRENT_DIR}/target/release" THUMBS_BINARY="${RELEASE_DIR}/thumbs" TMUX_THUMBS_BINARY="${RELEASE_DIR}/tmux-thumbs" +VERSION=$(grep 'version =' "${CURRENT_DIR}/Cargo.toml" | grep -oe "[0-9]\+.[0-9]\+.[0-9]\+") if [ ! -f "$THUMBS_BINARY" ]; then tmux split-window "cd ${CURRENT_DIR} && bash ./tmux-thumbs-install.sh"