navi/scripts/install

13 lines
229 B
Text
Raw Normal View History

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