From 060a9e33be43741b8caf819a66923f803fa2aee9 Mon Sep 17 00:00:00 2001 From: Fernando Schauenburg Date: Mon, 7 Feb 2022 20:21:32 +0100 Subject: [PATCH] install: show `stow` warnings in red --- install.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 0ed1276..3da80dd 100755 --- a/install.sh +++ b/install.sh @@ -91,7 +91,10 @@ link_config() { stow_home() { heading 'stow home directory' stow -v${IS_DRY_RUN:+n} --no-folding -d "$DOTFILES" -t "$TARGET" home 2>&1 \ - | sed -E -e "s/^([^:]+:)/$yellow\1$rst/" -e "s/=>/$blue=>$rst/" + | sed -E \ + -e "s/^(WARNING:)/$red\1$rst/" \ + -e "s/^([^:]+:)/$yellow\1$rst/" \ + -e "s/=>/$blue=>$rst/" } git_user_config() {