<p>Matthias Gazzari has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/25989">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">board_status: Remove sudo when checking for cbmem with command<br><br>I get the error below when using the following command in combination<br>with sudo:<br><br>sudo command -v $SOME_COMMAND<br>sudo: command: command not found<br><br>Detection of the cbmem path is working fine without sudo.<br><br>Change-Id: I8788c190ffebde117e2abd3df924c48d8f6fd05d<br>Signed-off-by: Matthias Gazzari <mail@qtux.eu><br>---<br>M util/board_status/board_status.sh<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/89/25989/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/util/board_status/board_status.sh b/util/board_status/board_status.sh</span><br><span>index ca7e2c7..b60ef75 100755</span><br><span>--- a/util/board_status/board_status.sh</span><br><span>+++ b/util/board_status/board_status.sh</span><br><span>@@ -378,7 +378,7 @@</span><br><span> else</span><br><span>   echo "Verifying that CBMEM is available"</span><br><span>   if [ $(id -u) -ne 0 ]; then</span><br><span style="color: hsl(0, 100%, 40%);">-             sudo command -v "$cbmem_cmd" >/dev/null</span><br><span style="color: hsl(120, 100%, 40%);">+          command -v "$cbmem_cmd" >/dev/null</span><br><span>              if [ $? -ne 0 ]; then</span><br><span>                        echo "Failed to run $cbmem_cmd using sudo. Check \$PATH or use -c" \</span><br><span>                       "to specify path to cbmem binary."</span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/25989">change 25989</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://review.coreboot.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://review.coreboot.org/25989"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: coreboot </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I8788c190ffebde117e2abd3df924c48d8f6fd05d </div>
<div style="display:none"> Gerrit-Change-Number: 25989 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Matthias Gazzari <mail@qtux.eu> </div>