You've already forked KernelSU-Next
mirror of
https://github.com/KernelSU-Next/KernelSU-Next.git
synced 2025-08-27 23:46:34 +00:00
ci: add spoofed manager workflow
This commit is contained in:
28
manager/spoof
Executable file
28
manager/spoof
Executable file
@@ -0,0 +1,28 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Generate 3 random lowercase words (6 letters each)
|
||||
word1=$(tr -dc 'a-z' </dev/urandom | head -c6)
|
||||
word2=$(tr -dc 'a-z' </dev/urandom | head -c6)
|
||||
word3=$(tr -dc 'a-z' </dev/urandom | head -c6)
|
||||
|
||||
echo "Generated words:"
|
||||
echo "com -> $word1"
|
||||
echo "rifsxd -> $word2"
|
||||
echo "ksunext -> $word3"
|
||||
echo ""
|
||||
|
||||
# Export variables for use in find -exec
|
||||
export word1 word2 word3
|
||||
|
||||
# Rename directories
|
||||
find . -depth -type d -name 'com' -execdir mv {} "$word1" \;
|
||||
find . -depth -type d -name 'rifsxd' -execdir mv {} "$word2" \;
|
||||
find . -depth -type d -name 'ksunext' -execdir mv {} "$word3" \;
|
||||
|
||||
# Replace inside files
|
||||
find . -type f -exec sed -i \
|
||||
-e "s/com\.rifsxd\.ksunext/$word1.$word2.$word3/g" \
|
||||
-e "s/com\/rifsxd\/ksunext/$word1\/$word2\/$word3/g" \
|
||||
-e "s/com_rifsxd_ksunext/${word1}_${word2}_${word3}/g" {} +
|
||||
|
||||
echo "Done."
|
||||
Reference in New Issue
Block a user