From ca04deb4503a043a852ea937f3c2eda33789459c Mon Sep 17 00:00:00 2001 From: yixinglu <2520865+yixinglu@users.noreply.github.com> Date: Fri, 29 Oct 2021 04:38:00 +0800 Subject: [PATCH] Fix bash script check error when running in GitHub action runner --- scripts/build-cmake | 2 +- scripts/build-gcc | 2 +- scripts/build-llvm | 2 +- scripts/install-cmake | 2 +- scripts/install-gcc | 2 +- scripts/install-llvm | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/build-cmake b/scripts/build-cmake index 5fc3ef7..1d556cf 100755 --- a/scripts/build-cmake +++ b/scripts/build-cmake @@ -9,7 +9,7 @@ # Always use bash shell=$(basename $(readlink /proc/$$/exe)) -if [ ! x$shell = x"bash" ] && [ ! x$shell = x"qemu-aarch64-static" ] +if [ ! x$shell = x"bash" ] && [[ x$shell != x"qemu-aarch64"* ]] then bash $0 $@ exit $? diff --git a/scripts/build-gcc b/scripts/build-gcc index 45d0596..a44211a 100755 --- a/scripts/build-gcc +++ b/scripts/build-gcc @@ -9,7 +9,7 @@ # Always use bash shell=$(basename $(readlink /proc/$$/exe)) -if [ ! x$shell = x"bash" ] && [ ! x$shell = x"qemu-aarch64-static" ] +if [ ! x$shell = x"bash" ] && [[ x$shell != x"qemu-aarch64"* ]] then bash $0 $@ exit $? diff --git a/scripts/build-llvm b/scripts/build-llvm index 978e3d7..a2c0b81 100755 --- a/scripts/build-llvm +++ b/scripts/build-llvm @@ -9,7 +9,7 @@ # Always use bash shell=$(basename $(readlink /proc/$$/exe)) -if [ ! x$shell = x"bash" ] && [ ! x$shell = x"qemu-aarch64-static" ] +if [ ! x$shell = x"bash" ] && [[ x$shell != x"qemu-aarch64"* ]] then bash $0 $@ exit $? diff --git a/scripts/install-cmake b/scripts/install-cmake index 704020a..37c4f6a 100755 --- a/scripts/install-cmake +++ b/scripts/install-cmake @@ -9,7 +9,7 @@ # Always use bash shell=$(basename $(readlink /proc/$$/exe)) -if [ ! x$shell = x"bash" ] && [ ! x$shell = x"qemu-aarch64-static" ] +if [ ! x$shell = x"bash" ] && [[ x$shell != x"qemu-aarch64"* ]] then bash $0 $@ exit $? diff --git a/scripts/install-gcc b/scripts/install-gcc index 527632d..3df9f8d 100755 --- a/scripts/install-gcc +++ b/scripts/install-gcc @@ -9,7 +9,7 @@ # Always use bash shell=$(basename $(readlink /proc/$$/exe)) -if [ ! x$shell = x"bash" ] && [ ! x$shell = x"qemu-aarch64-static" ] +if [ ! x$shell = x"bash" ] && [[ x$shell != x"qemu-aarch64"* ]] then bash $0 $@ exit $? diff --git a/scripts/install-llvm b/scripts/install-llvm index 627a4ff..4588a94 100755 --- a/scripts/install-llvm +++ b/scripts/install-llvm @@ -9,7 +9,7 @@ # Always use bash shell=$(basename $(readlink /proc/$$/exe)) -if [ ! x$shell = x"bash" ] && [ ! x$shell = x"qemu-aarch64-static" ] +if [ ! x$shell = x"bash" ] && [[ x$shell != x"qemu-aarch64"* ]] then bash $0 $@ exit $?