fixate the cargo output target path to the expected one

This commit is contained in:
Rostislav Raykov 2020-06-05 09:42:28 +02:00 committed by Ferran Basora
parent 0cf29dd942
commit 9416da2579

View File

@ -11,5 +11,5 @@ tmux bind-key $THUMBS_KEY run-shell -b "${CURRENT_DIR}/tmux-thumbs.sh"
BINARY="${CURRENT_DIR}/target/release/thumbs"
if [ ! -f "$BINARY" ]; then
tmux split-window "cd ${CURRENT_DIR} && cargo build --release && echo 'Press any key to continue...' && read -k1"
tmux split-window "cd ${CURRENT_DIR} && cargo build --release --target-dir=target && echo 'Press any key to continue...' && read -k1"
fi