mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
'which' tool is packaged separately from other core tools and there will likely be scenarios where this check will fail because 'which' is unavailable. The "type" is builtin itself and should solve this problem. For a built in command, we will not suppress error out -> removing 2>&1. On this replace - in call_run_command - get cmd_type as variable only once Reported by: Peter Oberparleiter <oberpar@linux.ibm.com> Signed-off-by: Joern Siglen <siglen@de.ibm.com> Reviewed-by: Mario Held <mario.held@de.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>