-
-
Notifications
You must be signed in to change notification settings - Fork 832
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Mods lowercase convert is broken #1868
Comments
Personally I use the command "convmv" to change the case of all my files. My line goes like this: convmv --lower -r --replace --notest ~/pathToFolderForConversion/ Note you will need to have the command "convmv" installed before use with "sudo apt install convmv" |
Please expedite this fix. It took me a couple days to realize that my offline (non-repository) addons weren't loading due to uppercase letters in the filenames. I would also like to suggest adding this knowledge to the FAQ or in the guides to prevent future headaches. Throwing an exception/error might also be a good idea. |
Rewrote the function and seems to work mostly fine.
Only problem is it fails with files with "-" dashes characters. Example:
No idea how to resolve this for now, been trying for an hour. |
Can't figure this out without extended practice with sed. |
Lesson of the day: |
Sample output: Installing DarkRP ================================= creating mod download directory /home/ulti/lgsm/mods/tmp...OK #=#=- # # ################################################################################################################################################################################################################################################ 100.0% -#O=- # # # extracting darkrp-master.zip...OK converting DarkRP files to lowercase...Found 19 uppercase files out of 588, converting...OK building darkrp-files.txt...OK copying DarkRP to /home/ulti/serverfiles/garrysmod/gamemodes...OK tidy up darkrp-files.txt...OK clearing mod download directory /home/ulti/lgsm/mods/tmp...OK DarkRP installed
…agers#3717) * Finally fixes GameServerManagers#1868 mods lowercase conversion Sample output: Installing DarkRP ================================= creating mod download directory /home/ulti/lgsm/mods/tmp...OK #=#=- # # ################################################################################################################################################################################################################################################ 100.0% -#O=- # # # extracting darkrp-master.zip...OK converting DarkRP files to lowercase...Found 19 uppercase files out of 588, converting...OK building darkrp-files.txt...OK copying DarkRP to /home/ulti/serverfiles/garrysmod/gamemodes...OK tidy up darkrp-files.txt...OK clearing mod download directory /home/ulti/lgsm/mods/tmp...OK DarkRP installed * removed unused variable
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Sample output:
Need to find out why
https://github.com/GameServerManagers/LinuxGSM/blob/master/lgsm/functions/mods_core.sh#L37-L66
The text was updated successfully, but these errors were encountered: