https://bugs.webkit.org/show_bug.cgi?id=173801
Patch by Alexey Shvayka <shvaikalesh@gmail.com> 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:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@248584
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2019-08-12 Alexey Shvayka <shvaikalesh@gmail.com>
+
+ 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 <jbedard@apple.com>
[REGRESSION] run-webkit-tests: No PID defined when searching for simulator crashlogs
#!/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