We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
2 parents38c7ddb +544db3c commit50c6286Copy full SHA for 50c6286
install.sh
@@ -34,20 +34,23 @@ detect_os() {
34
install_dependencies() {
35
local os="$1"
36
if [["$os"=="Linux" ]];then
37
- log_info"Detected Linux OS. Updating package list and installing dependencies..."
+ log_info"Detected Linux OS."
38
SUDO=""
39
ifcommand -v sudo>/dev/null2>&1;then
40
SUDO="sudo"
41
fi
42
-$SUDO apt-get update
43
-$SUDO apt-get install -y \
44
- build-essential \
45
- pkg-config \
46
- libudev-dev \
47
- llvm \
48
- libclang-dev \
49
- protobuf-compiler \
50
- libssl-dev
+ifcommand -v apt-get>/dev/null2>&1;then
+ log_info"Detected apt-get. Updating package list and installing dependencies..."
+$SUDO apt-get update
+$SUDO apt-get install -y \
+ build-essential \
+ pkg-config \
+ libudev-dev \
+ llvm \
+ libclang-dev \
51
+ protobuf-compiler \
52
+ libssl-dev
53
+fi
54
elif [["$os"=="Darwin" ]];then
55
log_info"Detected macOS."
56
else