Skip to content

Commit

Permalink
Add deprecation notice
Browse files Browse the repository at this point in the history
  • Loading branch information
denisidoro authored Mar 4, 2020
1 parent 8866459 commit 4ab45bc
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions navi
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
#!/usr/bin/env bash
set -euo pipefail

export NAVI_HOME="$(cd "$(dirname "$0")" && pwd)"
cd "$NAVI_HOME"
echo "navi has been rewritten from scratch. The previous way of calling the program isn't supported anymore."
echo "Please check https://github.com/denisidoro/navi/issues/201 for more details."
echo "I'm sorry for the inconvenience."

release_bin="${NAVI_HOME}/target/release/navi"
debug_bin="${NAVI_HOME}/target/debug/navi"

if [ -f "$release_bin" ]; then
"$release_bin" "$@"
elif [ -f "$debug_bin" ]; then
"$debug_bin" "$@"
else
cargo run -- "$@"
fi
exit 42

0 comments on commit 4ab45bc

Please sign in to comment.