IntelliJ Idea - Run sudo bash script as external tool

How to run a bash script that requires elevated permissions as external tool in Jetbrains IntelliJ Idea.

07.05.2022 Programming , Web , IntelliJ Idea

IntelliJ Idea - Load error: undefined path variables

Even in the current version of IntelliJ Idea an annoying error message might pop up: Load error: undefined path variables. Here's an alternate solution on how to get rid of it if Fix it doesn't fix it.