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"