summaryrefslogtreecommitdiff
path: root/tools/intel_gpu_abrt
diff options
context:
space:
mode:
authorVincent Cheng <vincentc1208@gmail.com>2014-12-31 10:39:51 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2014-12-31 10:42:38 +0000
commitcb512b6470fa848c9b351c2090cd3e3f588cfc5f (patch)
treeda67b9f7d9e24436ca121ee7f61e4d566c1d371b /tools/intel_gpu_abrt
parenteb799b29947a9030aca7d808e97190635636c8de (diff)
tools/intel_gpu_abrt: Fix bashism
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). Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=87888
Diffstat (limited to 'tools/intel_gpu_abrt')
-rwxr-xr-xtools/intel_gpu_abrt2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/intel_gpu_abrt b/tools/intel_gpu_abrt
index 4fbff768..a38137d7 100755
--- a/tools/intel_gpu_abrt
+++ b/tools/intel_gpu_abrt
@@ -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