mirror of
https://github.com/juewuy/ShellCrash.git
synced 2026-03-13 00:41:20 +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
|
#!/bin/sh
|
||||||
# Copyright (C) Juewuy
|
# 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_dir_avail.sh
|
||||||
. "$CRASHDIR"/libs/check_cpucore.sh
|
. "$CRASHDIR"/libs/check_cpucore.sh
|
||||||
. "$CRASHDIR"/libs/web_get_bin.sh
|
. "$CRASHDIR"/libs/web_get_bin.sh
|
||||||
|
|||||||
Reference in New Issue
Block a user