gorilla-devs / ferium

Fast and multi-source CLI program for managing Minecraft mods and modpacks from Modrinth, CurseForge, and GitHub Releases
Mozilla Public License 2.0
1.15k stars 49 forks source link

Modpacks on Linux get installed with backslashes instead of slashes #365

Open tliron opened 1 year ago

tliron commented 1 year ago

Description

I tried this:

ferium modpack add rWJ1VM8D
ferium upgrade

And got this output from ls:

 config                                                     'mods\createaddition-1.20.1-1.0.0b.jar'                 'mods\PigPen-Forge-1.20.1-15.0.1.jar'
 defaultconfigs                                             'mods\CreativeCore_FORGE_v2.10.34_mc1.20.1.jar'         'mods\pneumaticcraft-repressurized-6.0.0+mc1.20.1.jar'
 icon.png                                                   'mods\creeperoverhaul-3.0.1-forge.jar'                  'mods\polymorph-forge-0.49.0+1.20.1.jar'
 icons                                                      'mods\curios-forge-5.2.0-beta.3+1.20.1.jar'             'mods\raised-forge-1.20.1-2.0.0.jar'
 mods                                                       'mods\CyclopsCore-1.20.1-1.18.9.jar'                    'mods\rechiseled-1.1.2a-forge-mc1.20.jar'
'mods\ad_astra-forge-1.20.1-1.15.3.jar'                     'mods\DarkUtilities-Forge-1.20.1-17.0.1.jar'            'mods\rechiseledcreate-1.0.0a-forge-mc1.20.jar'
'mods\AdvancedPeripherals-1.20.1-0.7.32b.jar'               'mods\defaultoptions-forge-1.20-18.0.1.jar'             'mods\REIPluginCompatibilities-forge-12.0.55.jar'
'mods\advancementframes-1.20-2.1.0.jar'                     'mods\elytraslot-forge-6.3.0+1.20.1.jar'                'mods\resourcefulconfig-forge-1.20.1-2.1.0.jar'
'mods\AdvancementPlaques-1.20.1-forge-1.4.10.jar'           'mods\Fallingleaves-1.20.1-2.1.0.jar'                   'mods\resourcefullib-forge-1.20.1-2.1.9.jar'
'mods\ae2wtlib-15.0.6-beta.jar'                             'mods\FallingTree-1.20.1-4.3.0.jar'                     'mods\right-click-harvest-3.2.3+1.20.1-forge.jar'
'mods\AI-Improvements-1.20-0.5.2.jar'                       'mods\fancymenu_forge_2.14.9_MC_1.20.1.jar'             'mods\RoughlyEnoughItems-12.0.645.jar'
'mods\AmbientEnvironment-forge-1.20.1-11.0.0.1.jar'         'mods\FarmersDelight-1.20.1-1.2.3.jar'                  'mods\rubidium-0.6.5.jar'
'mods\AmbientSounds_FORGE_v5.2.22_mc1.20.1.jar'             'mods\farsighted-mobs-forge-1.1-1.20.1.jar'             'mods\Runelic-Forge-1.20.1-18.0.1.jar'
'mods\appleskin-forge-mc1.20.1-2.5.0.jar'                   'mods\Fastload-Reforged-mc1.20.1-3.4.0.jar'             'mods\Searchables-forge-1.20.1-1.0.1.jar'
'mods\appliedenergistics2-forge-15.0.9-beta.jar'            'mods\ferritecore-6.0.0-forge.jar'                      'mods\simple-rpc-forge-1.20-3.2.2.jar'
'mods\architectury-9.1.12-forge.jar'                        'mods\FlowerPatch-forge-1.20.1-3.0.1.jar'               'mods\sliceanddice-forge-3.1.1.jar'
'mods\artifacts-forge-9.0.5.jar'                            'mods\forbidden_arcanus-1.20.1-2.2.0-beta1.jar'         'mods\SnowRealMagic-1.20.1-forge-9.0.1.jar'
'mods\Baguslib-1.20.1-3.4.1.jar'                            'mods\functionalstorage-1.20.1-1.2.2.jar'               'mods\snowundertrees-1.20-1.4.1.jar'
'mods\balm-forge-1.20-7.0.7.jar'                            'mods\fusion-1.0.5-forge-mc1.20.jar'                    'mods\spark-1.10.42-forge.jar'
'mods\beautify-2.0.1.jar'                                   'mods\Galosphere-1.20.1-1.3.2-Forge.jar'                'mods\spelunkery-1.20.1-0.3.1-forge.jar'
'mods\BetterAdvancements-1.20.1-0.3.2.161.jar'              'mods\gardens-of-the-dead-forge-4.0.0.jar'              'mods\supermartijn642configlib-1.1.7-forge-mc1.20.jar'
'mods\BetterCompatibilityChecker-forge-4.0.8+mc1.20.1.jar'  'mods\geckolib-forge-1.20.1-4.2.1.jar'                  'mods\supermartijn642corelib-1.1.12a-forge-mc1.20.jar'
'mods\BetterF3-7.0.1-Forge-1.20.1.jar'                      'mods\hardcorerevival-forge-1.20-12.0.0.jar'            'mods\supplementaries-1.20-2.5.21.jar'
'mods\betterlily-1.20-1.3.1.jar'                            'mods\hunterillager-1.20.1-10.1.1.jar'                  'mods\tectonic-mod-mc1.19.3+-v2.1.jar'
'mods\BetterPingDisplay-1.20.1-1.1.jar'                     'mods\Iceberg-1.20.1-forge-1.1.13.jar'                  'mods\titanium-1.20.1-3.8.16.jar'
'mods\BHMenu-Forge-1.20.1-2.4.0.jar'                        'mods\IntegratedCrafting-1.20.1-1.1.4.jar'              'mods\ToolStats-Forge-1.20.1-16.0.1.jar'
'mods\Bookshelf-Forge-1.20.1-20.0.2.jar'                    'mods\IntegratedDynamics-1.20.1-1.17.0.jar'             'mods\torchmaster-20.1.4.jar'
'mods\botarium-forge-1.20.1-2.2.0.jar'                      'mods\IntegratedTerminals-1.20.1-1.4.10.jar'            'mods\trashslot-forge-1.20-15.0.0.jar'
'mods\caelus-forge-3.1.0+1.20.jar'                          'mods\IntegratedTunnels-1.20.1-1.8.21.jar'              'mods\trolldom-1.20.1-2.0.1.jar'
'mods\carryon-forge-1.20.1-2.1.0.1.jar'                     'mods\Jade-1.20.1-forge-11.4.3.jar'                     'mods\twigs-1.20.1-3.1.0-forge.jar'
'mods\cc-tweaked-1.20.1-forge-1.107.0.jar'                  'mods\JadeAddons-1.20.1-forge-5.1.0.jar'                'mods\valhelsia_core-forge-1.20.1-1.1.0.jar'
'mods\chalk-1.20.1-1.6.1.jar'                               'mods\Kiwi-1.20.1-forge-11.1.1.jar'                     'mods\valhelsia_furniture-forge-1.20.1-1.1.1.jar'
'mods\charmofundying-forge-6.4.2+1.20.1.jar'                'mods\kleeslabs-forge-1.20-15.0.0.jar'                  'mods\visuality-forge-2.0.2.jar'
'mods\chat_heads-0.10.20-forge-1.20.jar'                    'mods\konkrete_forge_1.6.1-2_MC_1.20.jar'               'mods\wares-1.20.1-1.2.0.jar'
'mods\cherishedworlds-forge-6.1.1+1.20.1.jar'               'mods\kotlinforforge-4.4.0-all.jar'                     'mods\waystones-forge-1.20-14.0.1.jar'
'mods\Chunky-1.3.92.jar'                                    'mods\labels-1.20-1.13.jar'                             'mods\Xaeros_Minimap_23.6.2_Forge_1.20.jar'
'mods\clean_tooltips-1.0-forge-1.20.1.jar'                  'mods\modernfix-forge-5.6.1+mc1.20.1.jar'               'mods\XaerosWorldMap_1.33.0_Forge_1.20.jar'
'mods\ClearDespawn-forge-1.20.1-1.1.13.jar'                 'mods\moonlight-1.20-2.8.3-forge.jar'                   'mods\xercamusic-1.20.1-1.0.0.jar'
'mods\cloth-config-11.1.106-forge.jar'                      'mods\MouseTweaks-forge-mc1.20-2.25.jar'                'mods\xercapaint-1.20.1-1.0.0.jar'
'mods\Clumps-forge-1.20.1-12.0.0.3.jar'                     'mods\mutil-1.20.1-6.1.0.jar'                            resourcepacks
'mods\comforts-forge-6.3.3+1.20.1.jar'                      'mods\Neat-1.20-35-FORGE.jar'                           'resourcepacks\xali'\''s Bushy Leaves v3.4.1.zip'
'mods\CommonCapabilities-1.20.1-2.9.0.jar'                  'mods\netherportalfix-forge-1.20-13.0.0.jar'             shaderpacks
'mods\Controlling-forge-1.20.1-12.0.2.jar'                  'mods\notenoughanimations-forge-1.6.4-mc1.20.jar'       'shaderpacks\ComplementaryReimagined_r2.3.zip'
'mods\craftingtweaks-forge-1.20-18.0.2.jar'                 'mods\oculus-mc1.20-1.6.4.jar'                          'shaderpacks\ComplementaryShaders_v4.7.2.zip'
'mods\CraterLib-forge-1.20-1.0.2.jar'                       'mods\open-parties-and-claims-forge-1.20.1-0.19.3.jar'
'mods\create-1.20.1-0.5.1.d.jar'                            'mods\Patchouli-1.20.1-81-FORGE.jar'

The subdirectories were created, but because backslash is being used the files are not put in them (those subdirectories are empty).

Steps to reproduce

See above

Operating System

Linux

Are you using the latest version of ferium?

Additional information

Modpack link on Modrinth

tliron commented 1 year ago

I used cargo install ferium locally, so from source.