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 621dfcc5ff
23 changed files with 181 additions and 135 deletions

33
install_programs.sh Executable file
View File

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