In check mode, I want to display the current commit on the server. I use the shell command ( git rev-parse HEAD ) to register the variable and then print / debug it, but otherwise it will skip the shell commands in check mode.
Is there any sign for a shell command as safe to run in test mode?
Or any indispensable module to do what I want? I registered with the git module, but it only looks as if it is doing checks.
Any input would be appreciated.
Sofia source share