From e74ef30dc64e64558a20e539ed17194739b01124 Mon Sep 17 00:00:00 2001 From: yukkop Date: Fri, 18 Jul 2025 03:23:25 +0000 Subject: [PATCH] fix(lib): `shell`: remove unneccessary ''$ --- flake.nix | 2 +- lib/shell/logs.sh | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/flake.nix b/flake.nix index d89e72d..27db015 100644 --- a/flake.nix +++ b/flake.nix @@ -44,7 +44,7 @@ nixpkgs = nixpkgs-25-05; overlays = [ self.overlays.default ]; self-lib = import ./lib { inherit flake self inputs nixpkgs; }; - in self-lib.forAllSystemsWithPkgs [(import rust-overlay)] ({ + in self-lib.forAllSystemsWithPkgs ([(import rust-overlay)] ++ overlays) ({ system, pkgs, }: { diff --git a/lib/shell/logs.sh b/lib/shell/logs.sh index 0d63a79..cb90994 100644 --- a/lib/shell/logs.sh +++ b/lib/shell/logs.sh @@ -14,10 +14,10 @@ if ! mkdir -p "$(dirname "$LOG_PATH")" 2>/dev/null; then LOG_PATH="/dev/null" fi -log_info() { text=$1; shift; printf "%b ''${text}%b\n" "$BLUE" "$@" "$NC" | tee -a "$LOG_PATH" >&2; } -log_success() { text=$1; shift; printf "%b ''${text}%b\n" "$GREEN" "$@" "$NC" | tee -a "$LOG_PATH" >&2; } -log_warning() { text=$1; shift; printf "%b ''${text}%b\n" "$YELLOW" "$@" "$NC" | tee -a "$LOG_PATH" >&2; } -log_error() { text=$1; shift; printf "%b ''${text}%b\n" "$RED" "$@" "$NC" | tee -a "$LOG_PATH" >&2; } -log_step() { text=$1; shift; printf "%b ''${text}%b\n" "$PURPLE" "$@" "$NC" | tee -a "$LOG_PATH" >&2; } +log_info() { text=$1; shift; printf "%b ${text}%b\n" "$BLUE" "$@" "$NC" | tee -a "$LOG_PATH" >&2; } +log_success() { text=$1; shift; printf "%b ${text}%b\n" "$GREEN" "$@" "$NC" | tee -a "$LOG_PATH" >&2; } +log_warning() { text=$1; shift; printf "%b ${text}%b\n" "$YELLOW" "$@" "$NC" | tee -a "$LOG_PATH" >&2; } +log_error() { text=$1; shift; printf "%b ${text}%b\n" "$RED" "$@" "$NC" | tee -a "$LOG_PATH" >&2; } +log_step() { text=$1; shift; printf "%b ${text}%b\n" "$PURPLE" "$@" "$NC" | tee -a "$LOG_PATH" >&2; } log_header() { printf "\n%b=== %s ===%b\n" "$WHITE" "$@" "$NC" | tee -a "$LOG_PATH" >&2; }