Add system-type filters, add git-clone handling to main script

This commit is contained in:
2025-09-06 11:05:21 -05:00
parent 891b605dbe
commit 5547f644f4
12 changed files with 92 additions and 49 deletions

33
install_programs.sh Executable file
View File

@@ -0,0 +1,33 @@
#!/bin/zsh
install_scripts_from_dir() {
for script in $1; do
if [[ -x $script ]]; then
echo "executing: $script"
./$script
fi
done
}
echo "---- installing programs, base ---------------------------------------"
local scripts=$(find ./installs_and_builds -maxdepth 1 -mindepth 1 -type f | sort)
install_scripts_from_dir(${=scripts})
[[ $1 = "personal" ]] && {
echo "---- installing programs, personal -----------------------------------"
scripts=$(find ./installs_and_builds/personal -maxdepth 1 -mindepth 1 -type f | sort)
install_scripts_from_dir(${=scripts})
}
[[ $1 = "studio-music" ]] && {
echo "---- installing programs, studio-music -------------------------------"
scripts=$(find ./installs_and_builds/studio_music -maxdepth 1 -mindepth 1 -type f | sort)
install_scripts_from_dir(${=scripts})
}
[[ $1 = "work-placeholder" ]] && {
echo "---- installing programs, work-placeholder ---------------------------"
scripts=$(find ./installs_and_builds/work_placeholder -maxdepth 1 -mindepth 1 -type f | sort)
install_scripts_from_dir(${=scripts})
}