theypsilon / Update_All_MiSTer

All-in-one script for updating your MiSTer
GNU General Public License v3.0
664 stars 28 forks source link

INI file warning triggers due to filesystem case insensitivity #73

Closed zakk4223 closed 2 years ago

zakk4223 commented 3 years ago

See this thread: https://misterfpga.org/viewtopic.php?f=27&t=3388

cd /media/fat/scripts will result in pwd being '/media/fat/scripts' because that value isn't based on the canonical name on the filesystem, it's (more or less) based on what the provided path was.

Probably need to either use readlink -f to detect the actual path $PWD/ini_filename.ini resides at, or maybe just use /bin/pwd instead of the shell built in

theypsilon commented 2 years ago

Thanks for reporting this! It should be fixed now.