OPSI Linter

Antworten
atlas
Beiträge: 1
Registriert: 27 Feb 2019, 10:03

OPSI Linter

Beitrag 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. ---
Benutzeravatar
n.wenselowski
Ex-uib-Team
Beiträge: 3194
Registriert: 04 Apr 2013, 12:15

Re: OPSI Linter

Beitrag 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

Code: Alles auswählen

import OPSI
Antworten