Thank you, this is interesting and indeed something I have not considered so far. However… my thinking was that KM should just run the script and not do the script itself. In other words only do what I do when typing
cd ~/Documents/Obsidian/Scripts/
./Obsidian_Export.sh
into the terminal but I guess this is not how things work?
It is already late in Europe so I probably wait until tomorrow to try what you, @dustinknopoff and @drdrang have suggested. Thanks!
However, is there a way to do what I initially had in mind?