fix: apt -> apt-get (#2775)

there's a default /usr/bin/apt cli in macos
This commit is contained in:
yqrashawn 2022-08-03 17:26:31 +08:00 committed by GitHub
parent 6967732a06
commit d1ef1a3e31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
if [[ -x $(command -v apt) ]]; then if [[ -x $(command -v apt-get) ]]; then
apt install -y protobuf-compiler jq apt-get install -y protobuf-compiler jq
elif [[ -x $(command -v pacman) ]]; then elif [[ -x $(command -v pacman) ]]; then
pacman -Sy protobuf jq --noconfirm pacman -Sy protobuf jq --noconfirm
elif [[ -x $(command -v brew) ]]; then elif [[ -x $(command -v brew) ]]; then