A couple of days ago I wrote my first simplest script .sh that does 4 simplest operations with image files. Resize, watermark, rename and send it all over ftp. The script works with a bang. But it would be desirable that in the context menu there was a pkm -> send -> script. And pressing, the script starts and does everything, because manually constantly driving in the script path is annoying. I already implemented this with bash from git (which comes with the git installation). It was just there, I just pasted
--cd="%v." "d:/Work/scripts/sh/script.sh" in the arguments of the file C: \ Program Files (x86) \ Git \ git-bash.exe and everything works. But I just need Cygwin, because it supports BC to calculate decimal. I wrote to call cygwin and script execution
C:\cygwin64\bin\mintty.exe -e /bin/xhere /bin/bash.exe "%V" "d:/Work/scripts/sh/script.sh" But instead of running the script, the window simply opens with the current directory and more and more no reaction. I googled for a very long time, but I didn’t find any answers on the Russian forums, and wrote in English that I had to add sh.exe before the address to the script. But there's no point. I suspect that the path is too long and does not open. But I tried to insert
C:\cygwin64\bin\mintty.exe -e /bin/xhere /bin/bash.exe "%V" "d:/Work/scripts/sh/script.sh" Run (win + R), but still no reaction. How to do it? PS I do not know in the correct section of the forum, I wrote.