Title: [248584] trunk/Tools
Revision
248584
Author
[email protected]
Date
2019-08-12 17:52:49 -0700 (Mon, 12 Aug 2019)

Log Message

AX: Homebrew is not allowed to run any script under sudo.
https://bugs.webkit.org/show_bug.cgi?id=173801

Patch by Alexey Shvayka <[email protected]> on 2019-08-12
Reviewed by Carlos Alberto Lopez Perez.

Latest versions of Homebrew throw an error when run as root.
Dependencies are successfully installed w/o `sudo` on macOS, so skip it.

* gtk/install-dependencies:

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (248583 => 248584)


--- trunk/Tools/ChangeLog	2019-08-12 23:43:55 UTC (rev 248583)
+++ trunk/Tools/ChangeLog	2019-08-13 00:52:49 UTC (rev 248584)
@@ -1,3 +1,15 @@
+2019-08-12  Alexey Shvayka  <[email protected]>
+
+        AX: Homebrew is not allowed to run any script under sudo.
+        https://bugs.webkit.org/show_bug.cgi?id=173801
+
+        Reviewed by Carlos Alberto Lopez Perez.
+
+        Latest versions of Homebrew throw an error when run as root.
+        Dependencies are successfully installed w/o `sudo` on macOS, so skip it.
+
+        * gtk/install-dependencies:
+
 2019-08-12  Jonathan Bedard  <[email protected]>
 
         [REGRESSION] run-webkit-tests: No PID defined when searching for simulator crashlogs

Modified: trunk/Tools/gtk/install-dependencies (248583 => 248584)


--- trunk/Tools/gtk/install-dependencies	2019-08-12 23:43:55 UTC (rev 248583)
+++ trunk/Tools/gtk/install-dependencies	2019-08-13 00:52:49 UTC (rev 248584)
@@ -1,7 +1,7 @@
 #!/usr/bin/env bash
 
-# This script needs to be run with root rights.
-if [ $UID -ne 0 ]; then
+# On Linux systems, this script needs to be run with root rights.
+if [ `uname` != "Darwin" ] && [ $UID -ne 0 ]; then
     sudo $0
     exit 0
 fi
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to