mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-10 17:36:11 +00:00
tools: intel_gpu_abrt checking for root access
needed by other igt tools that are collecting more usefull information.
This commit is contained in:
parent
616a4de567
commit
3ab148331a
@ -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/${@:$#}
|
||||
|
Loading…
x
Reference in New Issue
Block a user