mirror of
https://github.com/fmhy/edit.git
synced 2026-02-18 01:01:23 +11:00
comment
This commit is contained in:
parent
b8a82112dd
commit
dfc9759cda
1 changed files with 13 additions and 0 deletions
13
.github/script.sh
vendored
13
.github/script.sh
vendored
|
|
@ -1,7 +1,20 @@
|
|||
# This script is used to perform a series of file operations in the current directory.
|
||||
|
||||
# The first line calls the 'replace.py' script located in the '.github' directory.
|
||||
# This script is responsible for replacing certain patterns in the codebase.
|
||||
python .github/replace.py
|
||||
|
||||
# The second line calls the 'add-headers.py' script located in the '.github' directory.
|
||||
# This script is responsible for adding headers to the code files.
|
||||
python .github/add-headers.py
|
||||
|
||||
# The 'for' loop iterates over all files in the current directory.
|
||||
# The '[[ -f "$file" ]]' condition checks if the current item is a regular file.
|
||||
# If the condition is true, the file is moved to a new name with all lowercase characters.
|
||||
# The '2>/dev/null' redirection is used to suppress any error messages that might occur during the file move operation.
|
||||
for file in *; do
|
||||
[[ -f "$file" ]] && mv "$file" "${file,,}" 2>/dev/null
|
||||
done
|
||||
|
||||
# The script ends by exiting with a status code of 0, indicating successful completion.
|
||||
exit 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue