This commit is contained in:
araison 2024-01-21 18:43:30 +01:00
parent 6523c554cf
commit cb23c6cad9

View File

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