mirror of
https://github.com/denisidoro/navi
synced 2025-02-16 12:38:28 +00:00
Add deprecation notice
This commit is contained in:
parent
8866459709
commit
4ab45bc3ea
1 changed files with 4 additions and 12 deletions
16
navi
16
navi
|
@ -1,16 +1,8 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
export NAVI_HOME="$(cd "$(dirname "$0")" && pwd)"
|
echo "navi has been rewritten from scratch. The previous way of calling the program isn't supported anymore."
|
||||||
cd "$NAVI_HOME"
|
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"
|
exit 42
|
||||||
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
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue