navi/scripts/install

15 lines
257 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"
echo "${SCRIPT_DIR}/navi" '"$@"'
2019-09-20 17:01:12 +00:00
}
folder="${1:-/usr/local/bin}"
bin="${folder}/navi"
script > "$bin"
chmod +x "$bin"