Hey friends,
I have been at this for couple hours and am very frustrated. I installed the delta-plugin once (it worked fine) but then I deleted some mods and now I'm trying to create a new one. I keep getting an error that says:
Unexpected token 'merge' in expression or statement. Can you help me find my error in the command?
Here is the command line I'm using. :
"C:\Games\OpenMWMods\Tools\Delta Plugin\delta_plugin.exe" merge "C:\Games\OpenMWMods\Tools\DeltaPlugin\delta-merged.omwaddon"
Issues With Delta Plugin
- AnyOldName3
- Posts: 2677
- Joined: 26 Nov 2015, 03:25
Re: Issues With Delta Plugin
Unlike shells like Bash, PowerShell makes a distinction between commands and strings. By quoting the path to the program, you've made it explicitly a string rather than something which gets decided based on context. It's not expecting
You'll want to use the Call operator run
merge
to come straight after a string, so tells you there's an unexpected token.You'll want to use the Call operator
&
to tell PowerShell to treat the string as a command, so instead of Code: Select all
"C:\Games\OpenMWMods\Tools\Delta Plugin\delta_plugin.exe" merge "C:\Games\OpenMWMods\Tools\DeltaPlugin\delta-merged.omwaddon"
Code: Select all
& "C:\Games\OpenMWMods\Tools\Delta Plugin\delta_plugin.exe" merge "C:\Games\OpenMWMods\Tools\DeltaPlugin\delta-merged.omwaddon"
Re: Issues With Delta Plugin
Thank you very much that fixed the problem!