Skip to content

Commit

Permalink
use {;} instead of () to avoid subshell overhead
Browse files Browse the repository at this point in the history
  • Loading branch information
camerondurham committed Nov 28, 2021
1 parent 8845e51 commit 917d476
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/install-ch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ version=$(get_latest_release $repository)
architecture=$(uname -m)
operating_system=$(uname)
zip_filename=
if [ "$operating_system" = "Linux" ] && ( [ "$architecture" = "x86_64" ] || [ "$architecture" = "x86-64" ] ); then
if [ "$operating_system" = "Linux" ] && { [ "$architecture" = "x86_64" ] || [ "$architecture" = "x86-64" ]; } then
zip_filename="ch-linux-amd64.zip"
elif [ "$operating_system" = "Linux" ] && [ "$architecture" = "aarch64" ]; then
# aarch64 is supposedly the same as arm64 and containerd treats them the
Expand Down

0 comments on commit 917d476

Please sign in to comment.