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
+5 -2
View File
@@ -52,11 +52,14 @@ function log() {
echo -e "$*" >&2
;;
ERROR)
log ERROR "$*" >&2
echo -e "${RED}[ERROR]${NC} $*" >&2
;;
PROMPT)
echo -ne "$*" >&2
;;
*)
echo -e "$*" >&2
;;
esac
}
@@ -597,7 +600,7 @@ function mod_reset() {
fi
log PROMPT "Are you sure you want to ${RED}reset${NC} all installed mods? (Y/n): "
read -r confirm
read confirm
if [[ "$confirm" == "y" || "$confirm" == "Y" || "$confirm" = "" ]]; then
rm -f "$MODS_DIR"/*.patch_*
rm -f "$DB_FILE"
+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
}
+1 -1
View File
@@ -1 +1 @@
0.3.9
0.3.10