Seite 1 von 1

OPSI Linter

Verfasst: 27 Feb 2019, 10:13
von atlas
Hi there! I'm new to this forum, so please tell me if this is the wrong place to post my question.

I'm working with OPSI in the scope of my current employment, and I'm wondering if there is some way of checking the syntax of an OPSI script (like setup.ins) before packaging it. I've lost a lot of time to packaging, executing, fixing a typo in the script, repackaging, ... . It would be pretty convenient to have a pre-packaging check for obvious errors.
Is there any function available that I've missed, or maybe a personal GitHub project that would apply?

Thanks in advance and kind regards,
Atlas

--- Please excuse grammar & spelling errors, as this is not my first language. Thank you. ---

Re: OPSI Linter

Verfasst: 04 Mär 2019, 11:35
von n.wenselowski
Hi,

currently your best bet would be using an editor with proper hightlighting (jEdit, Package Builder, some more). This may help in some cases.

Another thing I'd suggest is having a look at your packaging routine.
You can mount the workbench on a test pc and edit and run your install script directly from there before you package it up. This can help catch a lot of errors beforehand.


Kind regards

Niko