I just have this simple script :
#!/bin/bash
mainDir="EVE-NG\ Repos"
mega-ls [email protected]:$mainDir
But I got this error :
[API:err: 08:40:34] Couldn't find "[email protected]:EVE-NG\ Repos"
When I enter the command natively in bash like this :
mega-ls [email protected]:EVE-NG\ Repos
It works, but inside the script, it doesn't.
mainDir = "EVE-NG\\ Repos"mainDir = "EVE-NG\ Repos"None of them worksmainDir='EVE-NG Repos'; mega-ls [email protected]:"$mainDir"should really work.