Update to use the proper path
This commit is contained in:
parent
691f49de26
commit
0a3ad6c0ab
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
scripts_PATH=$(pwd)
|
scripts_PATH=$1
|
||||||
username=$(whoami)
|
username=$(whoami)
|
||||||
home_PATH=/home/$username
|
home_PATH=/home/$username
|
||||||
|
|
||||||
|
@ -116,9 +116,10 @@ font_PATH="$home_PATH/.local/share/fonts"
|
||||||
if [[ ! -d $font_PATH ]]; then
|
if [[ ! -d $font_PATH ]]; then
|
||||||
mkdir $font_PATH
|
mkdir $font_PATH
|
||||||
fi
|
fi
|
||||||
cd $font_PATH
|
mkdir $font_PATH/JetBrainsMono
|
||||||
|
cd $font_PATH/JetBrainsMono
|
||||||
wget https://github.com/ryanoasis/nerd-fonts/releases/latest/download/JetBrainsMono.tar.xz
|
wget https://github.com/ryanoasis/nerd-fonts/releases/latest/download/JetBrainsMono.tar.xz
|
||||||
cd $font_PATH && tar -xvf JetBrainsMono.tar.xz
|
cd $font_PATH/JetbrainsMono && tar -xvf JetBrainsMono.tar.xz
|
||||||
cd ""
|
cd ""
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
|
|
|
@ -11,18 +11,19 @@ echo " Intro "
|
||||||
echo "==============="
|
echo "==============="
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
# Check for Repos directory
|
# Set Proper Path
|
||||||
if [[ ! -d /home/$(whoami)/Repos ]]; then
|
proper_PATH=/home/$(whoami)/Repos
|
||||||
mkdir /home/$(whoami)/Repos
|
|
||||||
fi
|
|
||||||
|
|
||||||
script_PATH=$(pwd)
|
# Check for Repos directory
|
||||||
|
if [[ ! -d $proper_PATH ]]; then
|
||||||
|
mkdir $proper_PATH
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ -f /bin/apt ]]; then
|
if [[ -f /bin/apt ]]; then
|
||||||
while true; do
|
while true; do
|
||||||
read -p "Are you using a Debian? (y/n)" answer
|
read -p "Are you using a Debian? (y/n)" answer
|
||||||
if [[ "${answer,,}" == "y" ]]; then
|
if [[ "${answer,,}" == "y" ]]; then
|
||||||
bash /home/rodolfo/Repos/arch-automated-installer/debiansetup.sh
|
bash $proper_PATH/arch-automated-installer/debiansetup.sh $proper_PATH
|
||||||
break
|
break
|
||||||
elif [[ "${answer,,}" == "n" ]]; then
|
elif [[ "${answer,,}" == "n" ]]; then
|
||||||
echo "Use a compatible system (Debian/Arch)"
|
echo "Use a compatible system (Debian/Arch)"
|
||||||
|
@ -44,9 +45,9 @@ elif [[ -f /bin/pacman ]]; then
|
||||||
# Get the Repo
|
# Get the Repo
|
||||||
if [[ ! -d /home/$(whoami)/Repos/arch-automated-installer ]]; then
|
if [[ ! -d /home/$(whoami)/Repos/arch-automated-installer ]]; then
|
||||||
git clone https://gitea.barcelli.net/rodolfo/arch-automated-installer /home/$(whoami)/Repos/arch-automated-installer
|
git clone https://gitea.barcelli.net/rodolfo/arch-automated-installer /home/$(whoami)/Repos/arch-automated-installer
|
||||||
cd /home/$(whoami)/Repos/arch-automated-installer
|
cd $proper_PATH/arch-automated-installer
|
||||||
fi
|
fi
|
||||||
bash /home/$(whoami)/Repos/arch-automated-installer/archsetup.sh
|
bash $proper_PATH/arch-automated-installer/archsetup.sh $proper_PATH
|
||||||
break
|
break
|
||||||
elif [[ "${answer,,}" == "n" ]]; then
|
elif [[ "${answer,,}" == "n" ]]; then
|
||||||
echo "Use a compatible system (Debian/Arch)"
|
echo "Use a compatible system (Debian/Arch)"
|
||||||
|
|
Loading…
Reference in a new issue