mirror of
https://github.com/juewuy/ShellCrash.git
synced 2026-03-10 23:41:22 +00:00
Add Module Load Guard
Prevents redundant script loading by using a conditional flag to ensure the module is initialized only once.
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
#!/bin/sh
|
||||
# Copyright (C) Juewuy
|
||||
|
||||
[ -n "$__IS_MODULE_9_UPGRADE_LOADED" ] && return
|
||||
__IS_MODULE_9_UPGRADE_LOADED=1
|
||||
|
||||
. "$CRASHDIR"/libs/check_dir_avail.sh
|
||||
. "$CRASHDIR"/libs/check_cpucore.sh
|
||||
. "$CRASHDIR"/libs/web_get_bin.sh
|
||||
|
||||
Reference in New Issue
Block a user