<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Bashisms in intel_gpu_abrt script"
href="https://bugs.freedesktop.org/show_bug.cgi?id=87888">87888</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Bashisms in intel_gpu_abrt script
</td>
</tr>
<tr>
<th>Product</th>
<td>DRI
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>DRM/Intel
</td>
</tr>
<tr>
<th>Assignee</th>
<td>intel-gfx-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>vincentc1208@gmail.com
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>intel-gfx-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>CC</th>
<td>intel-gfx-bugs@lists.freedesktop.org
</td>
</tr></table>
<p>
<div>
<pre>intel-gpu-tools ships a #!/bin/sh script that has bash-specific syntax (which
breaks on distros such as Debian and Ubuntu where /bin/sh is a symlink to
something other than bash). Here's a small patch which fixes this. Thanks for
considering!
(Forwarded from
diff -Nru a/tools/intel_gpu_abrt b/tools/intel_gpu_abrt
--- a/tools/intel_gpu_abrt 2013-02-19 18:05:47.000000000 -0800
+++ b/tools/intel_gpu_abrt 2014-12-30 17:12:56.499574747 -0800
@@ -1,6 +1,6 @@
#!/bin/sh
-if [[ $UID -ne 0 ]]; then
+if [ $(id -ru) -ne 0 ]; then
echo "$0 must be run as root"
exit 1
fi</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are on the CC list for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>