#!/bin/bash refresh_butckrepo() { if command -v butckrepo-refresh &> /dev/null; then butckrepo-refresh else cargo run --bin butckrepo-refresh fi } cd "$(dirname "$0")" refresh_butckrepo cargo install --path ./