mlir/ods-gen: use bash from env in shell script
authorRamkumar Ramachandra <r@artagnon.com>
Tue, 13 Dec 2022 16:27:50 +0000 (17:27 +0100)
committerRamkumar Ramachandra <r@artagnon.com>
Wed, 14 Dec 2022 11:28:07 +0000 (12:28 +0100)
On macOS, hardcoding the path of bash leads to a failure in executing
update_core_linalg_named_ops.sh, due to an old version of bash being
present in that location.

Signed-off-by: Ramkumar Ramachandra <r@artagnon.com>
Differential Revision: https://reviews.llvm.org/D139942

mlir/tools/mlir-linalg-ods-gen/update_core_linalg_named_ops.sh.in

index b0fbd64..da4db39 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 # See https://llvm.org/LICENSE.txt for license information.
 # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception