github.com/kelleygo/clashcore@v1.0.2/.github/rename-go120.sh (about) 1 #!/bin/bash 2 3 FILENAMES=$(ls) 4 for FILENAME in $FILENAMES 5 do 6 if [[ ! ($FILENAME =~ ".exe" || $FILENAME =~ ".sh")]];then 7 mv $FILENAME ${FILENAME}-go120 8 elif [[ $FILENAME =~ ".exe" ]];then 9 mv $FILENAME ${FILENAME%.*}-go120.exe 10 else echo "skip $FILENAME" 11 fi 12 done