navi/scripts/install
2019-09-21 17:17:01 -03:00

13 lines
No EOL
229 B
Bash
Executable file

#!/usr/bin/env bash
set -euo pipefail
export SCRIPT_DIR="$(cd "$(dirname "$0")/.." && pwd)"
script() {
echo "#!/usr/bin/env bash"
echo "${SCRIPT_DIR}/navi" '"$@"'
}
BIN="/usr/local/bin/navi"
script > "$BIN"
chmod +x "$BIN"