test
This commit is contained in:
parent
4513080352
commit
3930ac50ca
@ -33,12 +33,14 @@ do
|
|||||||
## End Of loop
|
## End Of loop
|
||||||
done
|
done
|
||||||
|
|
||||||
|
echo "checking for topgrade directory"
|
||||||
topgrade_install_directory="/opt/topgrade"
|
topgrade_install_directory="/opt/topgrade"
|
||||||
if [ ! -d "$topgrade_install_directory" ]; then
|
if [ ! -d "$topgrade_install_directory" ]; then
|
||||||
echo "creating topgrade installation directory"
|
echo "creating topgrade installation directory"
|
||||||
mkdir $topgrade_install_directory
|
mkdir $topgrade_install_directory
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "checking for topgrade binary"
|
||||||
topgrade_binary="/opt/topgrade/topgrade"
|
topgrade_binary="/opt/topgrade/topgrade"
|
||||||
topgrade_git_user="r-darwish"
|
topgrade_git_user="r-darwish"
|
||||||
topgrade_git_repo="topgrade"
|
topgrade_git_repo="topgrade"
|
||||||
@ -47,6 +49,7 @@ if [ ! -f "$topgrade_binary" ]; then
|
|||||||
curl -s -L "https://github.com/$topgrade_git_user/$topgrade_git_repo/releases/latest" | egrep -o '/$topgrade_git_user/$topgrade_git_repo/releases/download/[0-9]*/[0-9]*-x86_64-unknown-linux-gnu.tar.gz' | wget --base=http://github.com/ -i - -O "$topgrade_binary.tar.gz"
|
curl -s -L "https://github.com/$topgrade_git_user/$topgrade_git_repo/releases/latest" | egrep -o '/$topgrade_git_user/$topgrade_git_repo/releases/download/[0-9]*/[0-9]*-x86_64-unknown-linux-gnu.tar.gz' | wget --base=http://github.com/ -i - -O "$topgrade_binary.tar.gz"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "checking for neofetch motd"
|
||||||
neofetch_motd="/etc/update-motd.d/01-neofetch"
|
neofetch_motd="/etc/update-motd.d/01-neofetch"
|
||||||
if [ ! -f "$neofetch_motd" ]; then
|
if [ ! -f "$neofetch_motd" ]; then
|
||||||
echo "Installing Neofetch MOTD"
|
echo "Installing Neofetch MOTD"
|
||||||
@ -54,6 +57,7 @@ if [ ! -f "$neofetch_motd" ]; then
|
|||||||
echo "/usr/bin/neofetch" | tee --append $neofetch_motd &>/dev/null
|
echo "/usr/bin/neofetch" | tee --append $neofetch_motd &>/dev/null
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "checking for custom bash aliases"
|
||||||
custom_bash_aliases_path="/etc/bash_aliases"
|
custom_bash_aliases_path="/etc/bash_aliases"
|
||||||
custom_bash_aliases_git="https://git.deathbybandaid.net/deathbybandaid/bash_aliases"
|
custom_bash_aliases_git="https://git.deathbybandaid.net/deathbybandaid/bash_aliases"
|
||||||
if [ ! -d "$custom_bash_aliases_path" ]; then
|
if [ ! -d "$custom_bash_aliases_path" ]; then
|
||||||
@ -62,6 +66,7 @@ if [ ! -d "$custom_bash_aliases_path" ]; then
|
|||||||
fi
|
fi
|
||||||
source $HOME/.bashrc
|
source $HOME/.bashrc
|
||||||
|
|
||||||
|
echo "checking for topgrade confs"
|
||||||
custom_topgrade_confs_path="/etc/topgrade"
|
custom_topgrade_confs_path="/etc/topgrade"
|
||||||
custom_topgrade_confs_git="https://git.deathbybandaid.net/deathbybandaid/topgrade"
|
custom_topgrade_confs_git="https://git.deathbybandaid.net/deathbybandaid/topgrade"
|
||||||
if [ ! -d "$custom_topgrade_confs_path" ]; then
|
if [ ! -d "$custom_topgrade_confs_path" ]; then
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user