This message was deleted.
# kotlin-dsl
s
This message was deleted.
v
What has that to do with the topic of this channel or even with this workspace?
p
But yes:
val IDEA_ACTIVE: Boolean = System.getProperty("idea.active") == "true"
. Just check other properties starting with
idea.
to get the instance (AS or IntelliJ)
v
That will just give errors in a shell script though. ;-)
k
Some context on the work I am trying to do: I have a shell script which I can run on terminal or it will get run through github actions. I want to add a check in that shell script which should only run when the script is executed from command line.
v
@Philip Ws answer and your added context just makes it clearer, that your question is off-topic and neither matches the Channel topic, nor the workspace topic.
🆗 1