From cb23c6cad98561f0f7b4b3ce3d0acf7fbd989db0 Mon Sep 17 00:00:00 2001 From: araison Date: Sun, 21 Jan 2024 18:43:30 +0100 Subject: [PATCH] Update --- setup/install.sh | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) 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