From 8bd0a3b0c8bc94614f1e23cc49e717aa46e80403 Mon Sep 17 00:00:00 2001 From: Gabriel Gouvine Date: Tue, 4 Apr 2023 16:17:13 +0200 Subject: [PATCH] Do not show shell guess ofr directory queries --- bootstrap/coriolisEnv.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bootstrap/coriolisEnv.py b/bootstrap/coriolisEnv.py index 6cc26bd7..926c1349 100755 --- a/bootstrap/coriolisEnv.py +++ b/bootstrap/coriolisEnv.py @@ -170,7 +170,8 @@ def guessShell ( defaultShell, osType ): shellPath = whichCommand.stdout.splitlines()[0].decode('utf8') else: shellPath = shell - print( 'echo "[GUESSED] shellPath={}";'.format(shellPath) ) + if not options.queryISysRoot and not options.queryInstRoot: + print( 'echo "[GUESSED] shellPath={}";'.format(shellPath) ) except Exception: shellPath = u'/bin/bash' print( 'echo "[ERROR] \\"ps\\" command failure, using {}";'.format(shellPath) )