diff --git a/tmux-thumbs.sh b/tmux-thumbs.sh index 1a650a6..7e060e8 100755 --- a/tmux-thumbs.sh +++ b/tmux-thumbs.sh @@ -7,7 +7,7 @@ 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]\+") +VERSION=$(grep 'version =' "${CURRENT_DIR}/Cargo.toml" | grep -o "\".*\"" | sed 's/"//g') if [ ! -f "$THUMBS_BINARY" ]; then tmux split-window "cd ${CURRENT_DIR} && bash ./tmux-thumbs-install.sh"