mirror of
https://github.com/tw93/Mole.git
synced 2026-02-15 22:10:03 +00:00
Merge branch 'main' of github.com:tw93/Mole
This commit is contained in:
@@ -665,7 +665,6 @@ func getDirectorySizeFromDuWithExclude(path string, excludePath string) (int64,
|
|||||||
return runDuSize(path)
|
return runDuSize(path)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func getDirectoryLogicalSizeWithExclude(path string, excludePath string) (int64, error) {
|
func getDirectoryLogicalSizeWithExclude(path string, excludePath string) (int64, error) {
|
||||||
var total int64
|
var total int64
|
||||||
err := filepath.WalkDir(path, func(p string, d fs.DirEntry, err error) error {
|
err := filepath.WalkDir(path, func(p string, d fs.DirEntry, err error) error {
|
||||||
|
|||||||
@@ -444,7 +444,7 @@ is_critical_system_component() {
|
|||||||
lower=$(echo "$token" | tr '[:upper:]' '[:lower:]')
|
lower=$(echo "$token" | tr '[:upper:]' '[:lower:]')
|
||||||
|
|
||||||
case "$lower" in
|
case "$lower" in
|
||||||
*backgroundtaskmanagement* | *loginitems* | *systempreferences* | *systemsettings* | *settings* | *preferences* | *controlcenter* | *biometrickit* | *sfl* | *tcc* )
|
*backgroundtaskmanagement* | *loginitems* | *systempreferences* | *systemsettings* | *settings* | *preferences* | *controlcenter* | *biometrickit* | *sfl* | *tcc*)
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
|||||||
Reference in New Issue
Block a user