Skip to content

Commit

Permalink
Fix bash script check error when running in GitHub action runner
Browse files Browse the repository at this point in the history
  • Loading branch information
yixinglu committed Oct 28, 2021
1 parent 5fcac22 commit ca04deb
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion scripts/build-cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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 $?
Expand Down
2 changes: 1 addition & 1 deletion scripts/build-gcc
Original file line number Diff line number Diff line change
Expand Up @@ -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 $?
Expand Down
2 changes: 1 addition & 1 deletion scripts/build-llvm
Original file line number Diff line number Diff line change
Expand Up @@ -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 $?
Expand Down
2 changes: 1 addition & 1 deletion scripts/install-cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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 $?
Expand Down
2 changes: 1 addition & 1 deletion scripts/install-gcc
Original file line number Diff line number Diff line change
Expand Up @@ -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 $?
Expand Down
2 changes: 1 addition & 1 deletion scripts/install-llvm
Original file line number Diff line number Diff line change
Expand Up @@ -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 $?
Expand Down

0 comments on commit ca04deb

Please sign in to comment.