From 4ab45bc3ead874d69a7fc52e28ff61e89ac4e2d3 Mon Sep 17 00:00:00 2001 From: Denis Isidoro Date: Wed, 4 Mar 2020 20:03:03 -0300 Subject: [PATCH] Add deprecation notice --- navi | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/navi b/navi index 9fb406da..32706649 100755 --- a/navi +++ b/navi @@ -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