I have this simple command saved as
upon opening it, I can choose between launching it directly or in a terminal. However, it only works when opening it directly. When I chose "Run in Terminal", it shows a Terminal, which instantly closes again and nothing happens.
Why does this behave differently and how do fix it, since I later need user input in the script from the terminal?