mihomo/.github/rename-go120.sh

12 lines
289 B
Bash
Raw Permalink Normal View History

2023-10-26 11:09:19 +08:00
#!/bin/bash
FILENAMES=$(ls)
for FILENAME in $FILENAMES
do
if [[ ! ($FILENAME =~ ".exe" || $FILENAME =~ ".sh")]];then
2023-10-26 11:39:54 +08:00
mv $FILENAME ${FILENAME}-go120
2023-10-26 11:09:19 +08:00
elif [[ $FILENAME =~ ".exe" ]];then
mv $FILENAME ${FILENAME%.*}-go120.exe
else echo "skip $FILENAME"
fi
done