Skip to content
This repository has been archived by the owner on Dec 25, 2024. It is now read-only.

Commit

Permalink
fix(kernel-fsync): use nushell pattern instead of wget
Browse files Browse the repository at this point in the history
  • Loading branch information
tulilirockz committed Mar 8, 2024
1 parent 802f393 commit 4a0bde0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions config/scripts/fsync-kernel.nu
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/usr/bin/env -S nu
let FEDORA_MAJOR_VERSION = (rpm -E %fedora)
let REPO_FILE_PATH = "/etc/yum.repos.d/_copr_sentry-kernel-fsync.repo"
let FEDORA_MAJOR_VERSION = (run-external --redirect-combine rpm '-E' '%fedora' | complete).stdout
const COPR_FILE = "/etc/yum.repos.d/_copr_sentry-kernel-fsync.repo"

wget $"https://copr.fedorainfracloud.org/coprs/sentry/kernel-fsync/repo/fedora-($FEDORA_MAJOR_VERSION)/sentry-kernel-fsync-fedora-($$FEDORA_MAJOR_VERSION).repo" -O $REPO_FILE_PATH
http get $"https://copr.fedorainfracloud.org/coprs/sentry/kernel-fsync/repo/fedora-($FEDORA_MAJOR_VERSION)/sentry-kernel-fsync-fedora-($$FEDORA_MAJOR_VERSION).repo" | save -f $COPR_FILE

rpm-ostree cliwrap install-to-root /
rpm-ostree override replace --experimental --from repo=copr:copr.fedorainfracloud.org:sentry:kernel-fsync kernel kernel-core kernel-modules kernel-modules-core kernel-modules-extra kernel-uki-virt

rm -f $REPO_FILE_PATH
rm -f $COPR_FILE

0 comments on commit 4a0bde0

Please sign in to comment.