mirror of
https://github.com/tw93/Mole.git
synced 2026-02-04 14:26:46 +00:00
ShellCheck SC2001 Warning
This commit is contained in:
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
@@ -79,7 +79,7 @@ jobs:
|
||||
echo "Checking for hardcoded secrets..."
|
||||
matches=$(grep -r "password\|secret\|api_key" --include="*.sh" . \
|
||||
| grep -v "# \|test" \
|
||||
| grep -v -E "lib/core/sudo\.sh|lib/core/app_protection\.sh|lib/clean/user\.sh|lib/clean/brew\.sh|bin/optimize\.sh|lib/clean/apps\.sh" || true)
|
||||
| grep -v -E "lib/core/sudo\.sh|lib/core/app_protection\.sh|lib/clean/user\.sh|lib/clean/brew\.sh|bin/optimize\.sh|lib/clean/apps\.sh|lib/uninstall/batch\.sh" || true)
|
||||
if [[ -n "$matches" ]]; then
|
||||
echo "$matches"
|
||||
echo "✗ Potential secrets found"
|
||||
|
||||
@@ -956,7 +956,7 @@ find_app_receipt_files() {
|
||||
fi
|
||||
|
||||
# Normalize path (remove duplicate slashes)
|
||||
clean_path=$(echo "$clean_path" | sed 's#//*#/#g')
|
||||
clean_path=$(tr -s "/" <<<"$clean_path")
|
||||
|
||||
# ------------------------------------------------------------------------
|
||||
# Safety check: restrict removal to trusted paths
|
||||
|
||||
Reference in New Issue
Block a user