fix: segfault from infinite recursion

This commit is contained in:
v4n
2025-03-06 01:29:14 +02:00
parent d1ca18b563
commit b1930811f9
3 changed files with 10 additions and 4 deletions
+4 -1
View File
@@ -18,11 +18,14 @@ function log() {
echo -e "$*" >&2
;;
ERROR)
log ERROR "$*" >&2
echo -e "${RED}[ERROR]${NC} $*" >&2
;;
PROMPT)
echo -ne "$*" >&2
;;
*)
echo -e "$*" >&2
;;
esac
}