mirror of
https://github.com/FliegendeWurst/tmux-thumbs.git
synced 2024-11-10 00:00:36 +00:00
Changing grep check for OpenBSD compatibility
The different implementations of `grep` that exist in Linux and OpenBSD makes the tmux-thumbs script to crash. Changing the command to be compatible.
This commit is contained in:
parent
0647051ed7
commit
0ebb9f0a9a
@ -7,7 +7,7 @@ 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]\+")
|
VERSION=$(grep 'version =' "${CURRENT_DIR}/Cargo.toml" | grep -o "\".*\"" | sed 's/"//g')
|
||||||
|
|
||||||
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