mirror of
https://github.com/FliegendeWurst/tmux-thumbs.git
synced 2024-11-24 05:45:00 +00:00
Update tmux-thumbs.sh
Fix an issue with current dir
This commit is contained in:
parent
1b553f636b
commit
3033226513
@ -1,14 +1,13 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -Eeu -o pipefail
|
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
|
# 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 )"
|
||||||
RELEASE_DIR="${CURRENT_DIR}/target/release"
|
RELEASE_DIR="${CURRENT_DIR}/target/release"
|
||||||
|
|
||||||
THUMBS_BINARY="${RELEASE_DIR}/thumbs"
|
THUMBS_BINARY="${RELEASE_DIR}/thumbs"
|
||||||
TMUX_THUMBS_BINARY="${RELEASE_DIR}/tmux-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
|
if [ ! -f "$THUMBS_BINARY" ]; then
|
||||||
tmux split-window "cd ${CURRENT_DIR} && bash ./tmux-thumbs-install.sh"
|
tmux split-window "cd ${CURRENT_DIR} && bash ./tmux-thumbs-install.sh"
|
||||||
|
Loading…
Reference in New Issue
Block a user