#!/usr/bin/env bash set -o errexit set -o pipefail set -x INSTALL_DIR="${INSTALL_DIR:-$HOME/.local/bin}" REPO=$(git rev-parse --show-toplevel) cd "$REPO" || exit 1 cargo build --release if [[ -x $(which strip) ]]; then strip ./target/release/dfm fi mv ./target/release/dfm "$INSTALL_DIR/"