upd(bash.showtips): show tips excluding trailing newline

This commit is contained in:
thek4n 2024-03-21 15:50:09 +03:00
parent d537ddb6b3
commit f7f7f2bda5

View File

@ -205,7 +205,12 @@ showtips() {
git init "$TIPS_DIR"
fi
cat "$TIPS_DIR"/* 2>/dev/null
local content
for filename in "$TIPS_DIR"/*
do
content="$(cat "$filename")"
echo "$content"
done
return 0
}