forked from denisidoro/navi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8866459
commit 4ab45bc
Showing
1 changed file
with
4 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |