#!/bin/bash BINARY="ostiary" INSTALL_DIR="$HOME/.local/bin" CONFIG_DIR="$HOME/.config/$BINARY" RED='\033[0;31m'; GREEN='\033[0;32m'; YELLOW='\033[1;33m' CYAN='\033[0;36m'; NC='\033[0m' info() { echo -e "${CYAN}[ostiary]${NC} $*"; } ok() { echo -e "${GREEN}[ostiary]${NC} $*"; } warn() { echo -e "${YELLOW}[ostiary]${NC} $*"; } # Read from /dev/tty so the script works when piped through bash # (e.g. curl ... | bash), where stdin is the pipe, not the terminal. ask() { local answer read -rp "$1 [y/N] " answer