1
0
mirror of https://github.com/meineerde/dotfiles.git synced 2025-10-17 19:41:01 +00:00

Colorize with_project error, send all status info to STDERR

This commit is contained in:
Holger Just 2025-02-15 11:29:12 +01:00
parent 97a4b25bb9
commit 810218c09a
No known key found for this signature in database

View File

@ -242,10 +242,10 @@ with_project() {
local target="$1"
[[ -e "$1" ]] || target="$(d "$1")"
if [[ -e $target ]]; then
echo -e "\033[0;34m${2} ${target}\033[00m"
echo -e "\033[0;34m${2} ${target}\033[00m" >&2
$2 "$target"
else
echo "unknown project"
echo -e "\033[0;31munknown project\033[00m" >&2
return 1
fi
}