From cb512b6470fa848c9b351c2090cd3e3f588cfc5f Mon Sep 17 00:00:00 2001 From: Vincent Cheng Date: Wed, 31 Dec 2014 10:39:51 +0000 Subject: 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 --- tools/intel_gpu_abrt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/intel_gpu_abrt') 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 -- cgit v1.2.3