-
-
Save arrdem/f1b0dcaf869772041514c2683d0681cf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function install_package() { | |
if [ -e "$1/build.sh" ]; then | |
( cd "$1"; | |
bash "build.sh") | |
fi | |
stow --ignore="build.sh" --ignore="README.md" -t ~ "$f" | |
} | |
function install_packages() { | |
if [ -d "$1" ]; then | |
( cd "$1"; | |
for f in *; do | |
if [ -d "$f" ]; then | |
install_package "$f" | |
fi | |
done | |
) | |
fi | |
} | |
install_packages $(hostname) | |
install_packages default |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment