35 lines
634 B
Bash
Executable File
35 lines
634 B
Bash
Executable File
#!/bin/bash
|
|
|
|
packages="sshpass tmux python3-pip"
|
|
pip="awscli"
|
|
|
|
read -p "Are you sure? (Y/N) "
|
|
|
|
if [[ "$REPLY" != "Y" ]]
|
|
then
|
|
echo "OK, Bye!"
|
|
exit 0
|
|
fi
|
|
|
|
release=$(lsb_release -d | grep -i ubuntu > /dev/null && echo ubuntu || echo unknown)
|
|
echo "Release is $release"
|
|
|
|
if [[ "$release" == "ubuntu" ]]
|
|
then
|
|
echo "Installing packages ..."
|
|
sudo apt install -y $packages
|
|
fi
|
|
|
|
# if [[ "$release" == "ubuntu" ]]
|
|
# then
|
|
# echo "Installing packages ..."
|
|
# sudo apt install -y $packages
|
|
#fi
|
|
|
|
if [[ -f ~/.dotfiles/bash/bashrc ]]
|
|
then
|
|
echo "Dotfiles bashrc found, linking it ..."
|
|
rm -rf ~/.bashrc
|
|
ln -sf ~/.dotfiles/bash/bashrc ~/.bashrc
|
|
fi
|