File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ if (( $EUID != 0 )); then
9494fi
9595
9696# Check that sudo is available
97- if [[ " $SUDO " -eq " sudo" && ! (" '$* '" =~ skip-sudo-check) ]]; then
97+ if [[ " $SUDO " == " sudo" && ! (" '$* '" =~ skip-sudo-check) ]]; then
9898
9999 $SUDO -v
100100 if [ $? -ne 0 ]; then
Original file line number Diff line number Diff line change 1414# Switches
1515# -includeide - the script is being run headless, do not perform actions that require response from the console
1616# -interactivetests - requires a human user in front of the machine - loads a script into the ide to test with F5 to ensure the IDE can run scripts
17+ # -skip-sudo-check - skips the check that the user has permission to use sudo. This is required to run in the VSTS Hosted Linux Preview.
1718
1819# gitrepo paths are overrideable to run from your own fork or branch for testing or private distribution
1920
@@ -96,7 +97,7 @@ if (( $EUID != 0 )); then
9697fi
9798
9899# Check that sudo is available
99- if [[ " $SUDO " -ne " " ]]; then
100+ if [[ " $SUDO " == " sudo " && ! ( " ' $* ' " = ~ skip-sudo-check) ]]; then
100101
101102 $SUDO -v
102103 if [ $? -ne 0 ]; then
Original file line number Diff line number Diff line change 1414# Switches
1515# -includeide - the script is being run headless, do not perform actions that require response from the console
1616# -interactivetests - requires a human user in front of the machine - loads a script into the ide to test with F5 to ensure the IDE can run scripts
17+ # -skip-sudo-check - skips the check that the user has permission to use sudo. This is required to run in the VSTS Hosted Linux Preview.
1718
1819# gitrepo paths are overrideable to run from your own fork or branch for testing or private distribution
1920
@@ -94,7 +95,7 @@ if (( $EUID != 0 )); then
9495fi
9596
9697# Check that sudo is available
97- if [[ " $SUDO " -eq " sudo" ]]; then
98+ if [[ " $SUDO " == " sudo" && ! ( " ' $* ' " = ~ skip-sudo-check) ]]; then
9899
99100 $SUDO -v
100101 if [ $? -ne 0 ]; then
You can’t perform that action at this time.
0 commit comments