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

Commit

Permalink
fix: include FEDORA_MAJOR_VERSION to all scripts that use it
Browse files Browse the repository at this point in the history
  • Loading branch information
tulilirockz committed Mar 7, 2024
1 parent 35c598c commit 41cee8e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ export const DISTROBOX_DOWNLOAD_URL = "https://raw.githubusercontent.com/89luca8

export def gen_export_string [package: string, export_Path: string] {
return $"distrobox-export --app ($package) ; distrobox-export --export-path ($export_Path) --bin /usr/bin/($package)"
}
}
3 changes: 1 addition & 2 deletions config/scripts/gnome-vrr.nu
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/env -S nu

use lib/std.nu [FEDORA_MAJOR_VERSION]

let FEDORA_MAJOR_VERSION = (run-external --redirect-combine rpm '-E' '%fedora' | complete).stdout
const REPO_PATH = "/etc/yum.repos.d/_copr_kylegospo-gnome-vrr.repo"

http get $"https://copr.fedorainfracloud.org/coprs/kylegospo/gnome-vrr/repo/fedora-($FEDORA_MAJOR_VERSION)/kylegospo-gnome-vrr-fedora-($FEDORA_MAJOR_VERSION).repo" | save -f $REPO_PATH
Expand Down
1 change: 0 additions & 1 deletion config/scripts/lib/std.nu
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export let FEDORA_MAJOR_VERSION = (run-external --redirect-combine rpm '-E' '%fedora' | complete).stdout
export const ARCH = "x86_64"
3 changes: 2 additions & 1 deletion config/scripts/nvidia-explicit-sync.nu
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/usr/bin/env -S nu
#
use lib/std.nu [FEDORA_MAJOR_VERSION, ARCH]
use lib/std.nu [ARCH]

let FEDORA_MAJOR_VERSION = (run-external --redirect-combine rpm '-E' '%fedora' | complete).stdout
const COPR_FILE = "/etc/yum.repos.d/_copr_gloriouseggroll-nvidia-explicit-sync.repo"

http get $"https://copr.fedorainfracloud.org/coprs/gloriouseggroll/nvidia-explicit-sync/repo/fedora-($FEDORA_MAJOR_VERSION)/gloriouseggroll-nvidia-explicit-sync-fedora-($FEDORA_MAJOR_VERSION).repo?arch=($ARCH)" | save -f $COPR_FILE
Expand Down
3 changes: 2 additions & 1 deletion config/scripts/ptyxis.nu
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/usr/bin/env -S nu

use lib/std.nu [FEDORA_MAJOR_VERSION, ARCH]
use lib/std.nu [ARCH]

let FEDORA_MAJOR_VERSION = (run-external --redirect-combine rpm '-E' '%fedora' | complete).stdout
const COPR_FILE = "/etc/yum.repos.d/_copr_kylegospo-prompt.repo"

http get "https://copr.fedorainfracloud.org/coprs/kylegospo/prompt/repo/fedora-($FEDORA_MAJOR_VERSION)/kylegospo-prompt-fedora-($FEDORA_MAJOR_VERSION).repo?arch=($ARCH)" | save -f $COPR_FILE
Expand Down

0 comments on commit 41cee8e

Please sign in to comment.