From 4a0bde09cec83a011ecc3aedd1a854529541ff54 Mon Sep 17 00:00:00 2001 From: Tulili Date: Fri, 8 Mar 2024 11:33:33 -0300 Subject: [PATCH] fix(kernel-fsync): use nushell pattern instead of wget --- config/scripts/fsync-kernel.nu | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/config/scripts/fsync-kernel.nu b/config/scripts/fsync-kernel.nu index 6af4c47..0172fa3 100755 --- a/config/scripts/fsync-kernel.nu +++ b/config/scripts/fsync-kernel.nu @@ -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