-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathautoupdate
More file actions
executable file
·23 lines (18 loc) · 889 Bytes
/
Copy pathautoupdate
File metadata and controls
executable file
·23 lines (18 loc) · 889 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
set -e
cd "$(dirname "$0")/source"
git -C cachy fetch --depth 1 origin master
git -C cachy reset --hard origin/master
git -C xanmod fetch --depth 1 origin master
git -C xanmod reset --hard origin/master
TAG="$(curl -fsSL https://api.github.com/repos/NVIDIA/open-gpu-kernel-modules/releases/latest | jq -r '.tag_name')"
git -C nvidia fetch --depth 1 origin "refs/tags/${TAG}:refs/tags/${TAG}"
git -C nvidia reset --hard "${TAG}"
TAG="$(curl -fsSL https://api.github.com/repos/openzfs/zfs/releases/latest | jq -r '.tag_name')"
git -C zfs fetch --depth 1 origin "refs/tags/${TAG}:refs/tags/${TAG}"
git -C zfs reset --hard "${TAG}"
TAG="$(curl -fsSL https://api.github.com/repos/koverstreet/bcachefs-tools/tags | jq -r '.[0].name')"
git -C bcachefs fetch --depth 1 origin "refs/tags/${TAG}:refs/tags/${TAG}"
git -C bcachefs reset --hard "${TAG}"
# Linux kernel
# Manually update