$HOME more robust than ~

This commit is contained in:
Adam 2023-06-19 20:25:03 -04:00
parent 62df590246
commit a0984e83f2

20
setup
View file

@ -42,19 +42,19 @@ if [[ $OS == *Arch* ]]; then
git clone https://github.com/adoyle0/Doors.git .doors git clone https://github.com/adoyle0/Doors.git .doors
fi && fi &&
~/.doors/scripts/install_arch $HOME/.doors/scripts/install_arch
elif [[ $OS == *buntu* ]]; then elif [[ $OS == *buntu* ]]; then
cd && cd &&
sudo apt-get -y install git rsync && sudo apt-get -y install git rsync &&
git clone https://github.com/adoyle0/Doors.git .doors && git clone https://github.com/adoyle0/Doors.git .doors &&
~/.doors/scripts/install_min_ubuntu $HOME/.doors/scripts/install_min_ubuntu
elif [[ $OS == *Fedora* ]]; then elif [[ $OS == *Fedora* ]]; then
cd && cd &&
sudo dnf install -y git rsync && sudo dnf install -y git rsync &&
git clone https://github.com/adoyle0/Doors.git .doors && git clone https://github.com/adoyle0/Doors.git .doors &&
~/.doors/scripts/install_min_fedora $HOME/.doors/scripts/install_min_fedora
fi fi
@ -64,15 +64,15 @@ fi
# #
echo -e "\nInstalling Configs..." && echo -e "\nInstalling Configs..." &&
cd ~/.doors/configs && cd $HOME/.doors/configs &&
for file in * for file in *
do do
echo -e "\n$file..." && echo -e "\n$file..." &&
cp -rbv $file ~/.config/ cp -rbv $file $HOME/.config/
done && done &&
echo -e "\nLinking profile..." && echo -e "\nLinking profile..." &&
cp -sbv ~/.config/shell/profile ~/.zprofile && cp -sbv $HOME/.config/shell/profile ~/.zprofile &&
@ -81,13 +81,13 @@ echo -e "\nInstalling Configs..." &&
# #
echo -e "\nInstalling Scripts..." && echo -e "\nInstalling Scripts..." &&
cd ~/.doors && cd $HOME/.doors &&
if [ ! -d "~/.local/bin" ]; then if [ ! -d "$HOME/.local/bin" ]; then
mkdir "~/.local/bin" mkdir "$HOME/.local/bin"
fi && fi &&
cp -rbv bin ~/.local && cp -rbv bin $HOME/.local &&