Fix arch install
This commit is contained in:
parent
5303a7077a
commit
d7c28f36be
@ -3,8 +3,8 @@
|
|||||||
# This ensures that the entire script is downloaded before execution
|
# This ensures that the entire script is downloaded before execution
|
||||||
{
|
{
|
||||||
|
|
||||||
pacman -Syu
|
sudo pacman -Syu
|
||||||
pacman -S yay
|
sudo pacman -S yay
|
||||||
|
|
||||||
yay -Syu
|
yay -Syu
|
||||||
|
|
||||||
|
@ -39,14 +39,13 @@ function symlink() {
|
|||||||
|
|
||||||
read -p "Press enter to install my dotfiles " WAIT_FOR_INPUT
|
read -p "Press enter to install my dotfiles " WAIT_FOR_INPUT
|
||||||
|
|
||||||
echo "[Dotfiles] Would you like to detect distro and auto-install dependencies? [Y/n]: \c"
|
read -p "[Dotfiles] Would you like to detect distro and auto-install dependencies? [Y/n]: " line
|
||||||
read line
|
|
||||||
if [[ "$line" == Y* ]] || [[ "$line" == y* ]] || [ -z "$line" ]; then
|
if [[ "$line" == Y* ]] || [[ "$line" == y* ]] || [ -z "$line" ]; then
|
||||||
distrourl="https://raw.githubusercontent.com/alopexc0de/dotfiles/master/.bin"
|
distrourl="https://raw.githubusercontent.com/alopexc0de/dotfiles/master/.bin"
|
||||||
if [ -f /etc/arch-release ]; then
|
if [ -f /etc/arch-release ]; then
|
||||||
bash <(curl -sL $distrourl/install.deb)
|
|
||||||
elif [ -f /etc/debian_version]; then
|
|
||||||
bash <(curl -sL $distrourl/install.arch)
|
bash <(curl -sL $distrourl/install.arch)
|
||||||
|
elif [ -f /etc/debian_version ]; then
|
||||||
|
bash <(curl -sL $distrourl/install.deb)
|
||||||
else
|
else
|
||||||
echo "This system does not have an auto-install file. Please install the following packages manually"
|
echo "This system does not have an auto-install file. Please install the following packages manually"
|
||||||
echo "- tmux zsh vim git"
|
echo "- tmux zsh vim git"
|
||||||
@ -55,6 +54,8 @@ if [[ "$line" == Y* ]] || [[ "$line" == y* ]] || [ -z "$line" ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
exit
|
||||||
|
|
||||||
if ! which git >>/dev/null ; then
|
if ! which git >>/dev/null ; then
|
||||||
echo "Error: git is not installed"
|
echo "Error: git is not installed"
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user