diff --git a/setup/install.sh b/setup/install.sh index 9c13ac3..a0be899 100644 --- a/setup/install.sh +++ b/setup/install.sh @@ -1,3 +1,6 @@ +#!/bin/bash + + unameOut="$(uname -s)" case "${unameOut}" in Linux*) @@ -27,23 +30,23 @@ then fi -echo "Installing $pkg_manager packages" -bash realpath program/package_manager/$pkg_manager/packages.sh -if [ -f realpath program/package_manager/$pkg_manager/others ] +echo "Installing ${pkg_manager} packages" +bash program/package_manager/${pkg_manager}/packages.sh +if [ -f program/package_manager/${pkg_manager}/others ] then -for file in $(program/package_manager/$pkg_manager/others/*.sh) +for file in program/package_manager/${pkg_manager}/others/*.sh do bash ${file} done fi echo "Installing side packages" -for file in $(realpath others/**/*.sh) +for file in others/**/*.sh do bash ${file} done echo "Installing dotfiles" -for file in $(realpath dotfiles/**/*.sh) +for file in dotfiles/**/*.sh do bash ${file} done