I am trying to run a linux script on my Windows machine using cygwin.
I have already read and tried the solutions from There's no 'sudo' command in Cygwin, without any success.
I have a script that uses sudo in the regular linux environment. but when I run the scirpt on cygwin, it throws this error message:
project_common.sh: line 604: sudo: command not found
I know cygwin does not have sudo, and the referenced question mentioned earlier said to use:
>#!/usr/bin/bash
>"$@"
I tried executing that command before running the script. and also embedding the command into the script. Neither one help. So not sure what am I missing.