| .. | .. |
|---|
| 1 | 1 | #!/bin/bash |
|---|
| 2 | +# SPDX-License-Identifier: GPL-2.0-only |
|---|
| 2 | 3 | # perf-with-kcore: use perf with a copy of kcore |
|---|
| 3 | 4 | # Copyright (c) 2014, Intel Corporation. |
|---|
| 4 | 5 | # |
|---|
| 5 | | -# This program is free software; you can redistribute it and/or modify it |
|---|
| 6 | | -# under the terms and conditions of the GNU General Public License, |
|---|
| 7 | | -# version 2, as published by the Free Software Foundation. |
|---|
| 8 | | -# |
|---|
| 9 | | -# This program is distributed in the hope it will be useful, but WITHOUT |
|---|
| 10 | | -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|---|
| 11 | | -# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
|---|
| 12 | | -# more details. |
|---|
| 13 | 6 | |
|---|
| 14 | 7 | set -e |
|---|
| 15 | 8 | |
|---|
| .. | .. |
|---|
| 110 | 103 | fi |
|---|
| 111 | 104 | |
|---|
| 112 | 105 | USER_HOME=$(bash <<< "echo ~$SUDO_USER") |
|---|
| 113 | | - |
|---|
| 114 | | - if [ "$HOME" != "$USER_HOME" ] ; then |
|---|
| 115 | | - echo "Fix unnecessary because root has a home: $HOME" >&2 |
|---|
| 116 | | - exit 1 |
|---|
| 117 | | - fi |
|---|
| 118 | 106 | |
|---|
| 119 | 107 | echo "Fixing buildid cache permissions" |
|---|
| 120 | 108 | |
|---|