File: repair-linux.sh

package info (click to toggle)
avogadrolibs 1.101.0-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 78,500 kB
  • sloc: cpp: 139,792; ansic: 2,212; python: 1,435; perl: 321; sh: 90; makefile: 46
file content (14 lines) | stat: -rw-r--r-- 409 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env bash
set -ev

# This script is used to repair the Linux environment in GitHub Actions.
if command -v apt-get >/dev/null; then
  apt-get -y install git libeigen3-dev
elif command -v yum >/dev/null; then
  yum install -y git eigen3-devel
elif command -v apk >/dev/null; then
  apk add --no-cache git eigen-dev
else
  echo "Neither apt-get nor yum found. Cannot install dependencies."
  exit 1
fi