#!/bin/bash
# Exit immediately on error, treat unset variables as errors, propagate pipe failures.
set -euo pipefail
# Load shared log/skip/warn/err helpers from the installer library.
source "$(dirname "${BASH_SOURCE[0]}")/../../lib/logging.sh"

log "Installing LocalSend (AUR)..."
# LocalSend is a cross-platform AirDrop alternative that transfers files over the
# local network without an internet connection.  It is not in the official repos.
# --answerdiff None / --answerclean All suppress interactive PKGBUILD/clean prompts.
yay -S --answerdiff None --answerclean All --noconfirm localsend
log "LocalSend installed."
