mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-11-04 19:04:00 +00:00
12 lines
No EOL
289 B
Bash
12 lines
No EOL
289 B
Bash
#!/bin/bash
|
|
|
|
FILENAMES=$(ls)
|
|
for FILENAME in $FILENAMES
|
|
do
|
|
if [[ ! ($FILENAME =~ ".exe" || $FILENAME =~ ".sh")]];then
|
|
mv $FILENAME ${FILENAME}-go120
|
|
elif [[ $FILENAME =~ ".exe" ]];then
|
|
mv $FILENAME ${FILENAME%.*}-go120.exe
|
|
else echo "skip $FILENAME"
|
|
fi
|
|
done |