diff options
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/intel_gpu_abrt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/intel_gpu_abrt b/tools/intel_gpu_abrt index fe3684d1..9ca58c0e 100755 --- a/tools/intel_gpu_abrt +++ b/tools/intel_gpu_abrt @@ -1,5 +1,10 @@ #!/bin/sh +if [[ $UID -ne 0 ]]; then + echo "$0 must be run as root" + exit 1 +fi + get(){ if [ ! -e $tardir/${@:$#} ] ; then mkdir -p $tardir/${@:$#} |