I need to write a karaf console script that uninstalls a feature, if it is present on karaf 3.0.4.
So far I have not found any direct references mentionend in the documentation (https://karaf.apache.org/manual/latest-3.0.x/developers-guide/scripting.html). Using shell:env ?
always returns null
as the value and I'm not sure if ?
is a supported environment variable name in karaf.
So how can execute a karaf command if a feature is present?