Skip to content

Commit

Permalink
Fix bash script check error in qemu aarch64 context
Browse files Browse the repository at this point in the history
  • Loading branch information
yixinglu committed Oct 28, 2021
1 parent 383c822 commit 5fcac22
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" ]
if [ ! x$shell = x"bash" ] && [ ! x$shell = x"qemu-aarch64-static" ]
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" ]
if [ ! x$shell = x"bash" ] && [ ! x$shell = x"qemu-aarch64-static" ]
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" ]
if [ ! x$shell = x"bash" ] && [ ! x$shell = x"qemu-aarch64-static" ]
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" ]
if [ ! x$shell = x"bash" ] && [ ! x$shell = x"qemu-aarch64-static" ]
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" ]
if [ ! x$shell = x"bash" ] && [ ! x$shell = x"qemu-aarch64-static" ]
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" ]
if [ ! x$shell = x"bash" ] && [ ! x$shell = x"qemu-aarch64-static" ]
then
bash $0 $@
exit $?
Expand Down

0 comments on commit 5fcac22

Please sign in to comment.