sh 在macOS上使用“区分大小写的文件系统”时出现Steam客户端问题

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 在macOS上使用“区分大小写的文件系统”时出现Steam客户端问题相关的知识,希望对你有一定的参考价值。

#!/bin/sh

#----------------------------------------------------------------------------------------
# It works!
# https://steamcommunity.com/discussions/forum/2/282992646978253149/#c282992646985999495
#----------------------------------------------------------------------------------------

USER=$(whoami)
cd /Users/${USER}/Library/Application\ Support/Steam/Steam.AppBundle/Steam/Contents/MacOS/public; ls *.res | while read line ; do file=$(echo $line | tr '[:upper:]' '[:lower:]'); mv $line $file; done
cd /Users/${USER}/Library/Application\ Support/Steam/Steam.AppBundle/Steam/Contents/MacOS/steam/cached/; ls *.res | while read line ; do file=$(echo $line | tr '[:upper:]' '[:lower:]'); mv $line $file; done
cd /Users/${USER}/Library/Application\ Support/Steam/Steam.AppBundle/Steam/Contents/MacOS/friends; ls *.res | while read line ; do file=$(echo $line | tr '[:upper:]' '[:lower:]'); mv $line $file; done
cd /Users/${USER}/Library/Application\ Support/Steam/Steam.AppBundle/Steam/Contents/MacOS/graphics; ls *.tga | while read line ; do file=$(echo $line | tr '[:upper:]' '[:lower:]'); mv $line $file; done
cd /Users/${USER}/Library/Application\ Support/Steam/Steam.AppBundle/Steam/Contents/MacOS/servers; ls *.tga | while read line ; do file=$(echo $line | tr '[:upper:]' '[:lower:]'); mv $line $file; done

以上是关于sh 在macOS上使用“区分大小写的文件系统”时出现Steam客户端问题的主要内容,如果未能解决你的问题,请参考以下文章

在 OSX 中报告不区分大小写(使用 OSXFuse)

file_exists() 的 PHP 不区分大小写版本

sh 在caseSensitive的macos上使用steam

Python——模块——fnmatch(文件名对比)

sh 在MacOS上使用SubjectAltName为localhost创建自签名证书

sh [在macos上运行NiFi]在OSX上运行NiFi #nifi #macos