pawdance/install.sh
2025-07-25 12:45:57 +02:00

18 lines
385 B
Bash

#!/usr/bin/env bash
set -euo pipefail
SRC="${1:-./pawdance}"
DEST="/usr/local/bin/pawdance"
if [[ ! -f "$SRC" ]]; then
echo "Error: '$SRC' not found." >&2
exit 1
fi
echo "Installing pawdance to $DEST"ss
install -Dm755 "$SRC" "$DEST" # -D: create dirs as needed, -m755: chmod +x
echo "Done. Type 'pawdance --help' to verify."
echo syncing file system
sudo sync
echo done.