Update op.sh

old-commit-hash: 18c310addf
pull/33302/head
Maxime Desroches 10 months ago committed by GitHub
parent 4dbf2cd002
commit d33651d662
  1. 15
      tools/op.sh

@ -73,7 +73,6 @@ function op_check_os() {
source /etc/os-release source /etc/os-release
case "$VERSION_CODENAME" in case "$VERSION_CODENAME" in
"jammy" | "kinetic" | "noble" | "focal") "jammy" | "kinetic" | "noble" | "focal")
OS_VERSION="Ubuntu"
echo -e " ↳ [${GREEN}${NC}] Ubuntu $VERSION_CODENAME detected.\n" echo -e " ↳ [${GREEN}${NC}] Ubuntu $VERSION_CODENAME detected.\n"
;; ;;
* ) * )
@ -88,7 +87,6 @@ function op_check_os() {
elif [[ "$OSTYPE" == "darwin"* ]]; then elif [[ "$OSTYPE" == "darwin"* ]]; then
echo -e " ↳ [${GREEN}${NC}] macos detected.\n" echo -e " ↳ [${GREEN}${NC}] macos detected.\n"
OS_VERSION="Darwin"
else else
echo -e " ↳ [${RED}${NC}] OS type $OSTYPE not supported!" echo -e " ↳ [${RED}${NC}] OS type $OSTYPE not supported!"
return 1 return 1
@ -154,14 +152,11 @@ function op_install() {
op_check_os op_check_os
op_check_python op_check_python
case "$OS_VERSION" in if [[ "$OSTYPE" == "linux-gnu"* ]]; then
"Ubuntu") $OPENPILOT_ROOT/tools/ubuntu_setup.sh
$OPENPILOT_ROOT/tools/ubuntu_setup.sh elif [[ "$OSTYPE" == "darwin"* ]]; then
;; $OPENPILOT_ROOT/tools/mac_setup.sh
"Darwin") fi
$OPENPILOT_ROOT/tools/mac_setup.sh
;;
esac
git submodule update --init --recursive git submodule update --init --recursive
git lfs pull git lfs pull

Loading…
Cancel
Save