aboutsummaryrefslogtreecommitdiff
path: root/runs-all/48-get-reqs-arch.sh
diff options
context:
space:
mode:
authoriceyrazor <iceyrazor@mailfence.com>2026-09-19 18:21:43 -0500
committericeyrazor <iceyrazor@mailfence.com>2026-09-19 18:21:43 -0500
commitc058edf67d703e5adc22f2953cdcdd696b969f41 (patch)
treec174545b38f25eb7e865525af27fb8f81704d1b3 /runs-all/48-get-reqs-arch.sh
parent1e36cd234ce035a500e03b35e844ea7019f8fcca (diff)
Squashed commit of the following:
added vis plugin downloader fixed env scripts changed get-reqs priority priority in runs symlinks :>
Diffstat (limited to 'runs-all/48-get-reqs-arch.sh')
-rwxr-xr-xruns-all/48-get-reqs-arch.sh45
1 files changed, 45 insertions, 0 deletions
diff --git a/runs-all/48-get-reqs-arch.sh b/runs-all/48-get-reqs-arch.sh
new file mode 100755
index 0000000..0e31a00
--- /dev/null
+++ b/runs-all/48-get-reqs-arch.sh
@@ -0,0 +1,45 @@
+#!/bin/bash
+. /etc/os-release
+if [ "$ID" = "artix" ] || [ "$ID" = "arch" ]; then
+ sudo="sudo"
+ which doas > /dev/null && sudo="doas"
+
+ echo GETTING ALL REQS ARCH
+
+ #aur
+ install_aur=0
+ printf "install aur manager? [y/N]"
+ read -r uin
+ if [ "$uin" = "y" ] || [ "$uin" = "Y" ]; then
+ install_aur=1
+ fi
+
+ export aurm="paru"
+
+ #ask what to install
+ reqs_dir="$(find "$script_dir/runs-all/get-reqs-arch" -mindepth 1 -maxdepth 1 -type f -executable)"
+ reqs_list=()
+
+ for s in $reqs_dir; do
+ printf -- "%s? [y/N]" "$s"
+ read -r uin
+ if [ "$uin" = "y" ] || [ "$uin" = "Y" ]; then
+ reqs_list+=("$s")
+ fi
+ done
+ echo --------------
+
+ if [ $install_aur = 1 ]; then
+ git clone https://aur.archlinux.org/paru.git
+ cd paru || exit
+ makepkg -si
+ fi
+
+ #install
+ for s in "${reqs_list[@]}"; do
+ echo "running $s"
+ . "$s"
+ done
+
+ echo ---------------
+fi