From a70ead958e3e0a01701eef2521fb38af9d1329bb Mon Sep 17 00:00:00 2001 From: Marcus Tillmanns Date: Thu, 5 Oct 2023 10:31:26 +0200 Subject: [PATCH] Docker: Use "type" instead of "which" "which" fails for builtin commands, while "type" finds both builtin and executables. Change-Id: I2e508a01e28b827ed498add50f8faa9d58551e59 Reviewed-by: hjk Reviewed-by: --- src/libs/utils/deviceshell.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/utils/deviceshell.cpp b/src/libs/utils/deviceshell.cpp index 9c117ea0c5a..6d99d399841 100644 --- a/src/libs/utils/deviceshell.cpp +++ b/src/libs/utils/deviceshell.cpp @@ -232,7 +232,7 @@ expected_str DeviceShell::start() expected_str DeviceShell::checkCommand(const QByteArray &command) { - const QByteArray checkCmd = "(which " + command + " || echo '')\n"; + const QByteArray checkCmd = "(type " + command + " || echo '')\n"; m_shellProcess->writeRaw(checkCmd); if (!m_shellProcess->waitForReadyRead()) {