Welcome to mirror list, hosted at ThFree Co, Russian Federation.

pkg-install.sh « .cirrus-ci - github.com/freebsd/freebsd-src.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: bcb7811910238a3e683163e094e9aa78cb934270 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
set -e

start_time=$(date +%s)
pkg install -y "$@" && exit 0

cat <<EOF
pkg install failed after $(($(date +%s) - $start_time))s

dmesg tail:
$(dmesg | tail)

trying again
EOF

start_time=$(date +%s)
pkg install -y "$@" && exit 0

cat <<EOF
second pkg install failed after $(($(date +%s) - $start_time))s
EOF
exit 1