Skip to content

Commit

Permalink
fix up
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Yuan <[email protected]>
  • Loading branch information
SamYuan1990 committed Apr 4, 2024
1 parent ba01f8d commit 2b4614f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ ebpf() {
}

containerruntime() {
isUbuntu=$(cat /etc/os-release | grep NAME | grep Ubuntu | wc -l)
if [ $isUbuntu -gt 0 ]; then
isUbuntu=$(grep -c Ubuntu /etc/os-release)
if [ "$isUbuntu" -gt 0 ]; then
# Add Docker's official GPG key:
sudo apt-get update -y
sudo apt-get install ca-certificates curl gnupg -y
Expand Down

0 comments on commit 2b4614f

Please sign in to comment.