diff options
author | lonkaars <loek@pipeframe.xyz> | 2024-03-01 16:14:40 +0100 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2024-03-01 16:14:40 +0100 |
commit | 0e7d5ff96077445aa420bc855a63dfec2087d51a (patch) | |
tree | c50e27cfa6149b5b643fa6bcf47f9d3fab436863 /.config/yadm/install-arch | |
parent | bdd24709f93f3b496cbe842bf1cd0427a421199a (diff) |
big bootstrap overhaul
Diffstat (limited to '.config/yadm/install-arch')
-rwxr-xr-x | .config/yadm/install-arch | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/.config/yadm/install-arch b/.config/yadm/install-arch index 35977c2..1246dae 100755 --- a/.config/yadm/install-arch +++ b/.config/yadm/install-arch @@ -1,3 +1,13 @@ #!/bin/sh -[[ `lsb_release -si` -ne "Arch" ]] && exit -yay --noconfirm --needed -S - < packages-arch +# ensure we are running on arch linux +[ ! -e /etc/os-release ] && exit +. /etc/os-release +[ "$ID" != 'arch' ] && exit + +# resolve files in this script relative to this script's location +cd "$(dirname "$0")" + +# filter comments and pipe package name list to yay +sed -e 's/#.*//g' -e 's/ //g' -e '/^$/d' packages-arch |\ + yay --noconfirm --needed -S - + |