Skip to content

Commit

Permalink
Comment : on Wed 22 Feb 19:43:56 UTC 2017
Browse files Browse the repository at this point in the history
  • Loading branch information
erikdubois committed Feb 22, 2017
1 parent 2d394ce commit be5f069
Showing 1 changed file with 56 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,57 @@
#
##################################################################################################################

#dependency
package="clang"


#----------------------------------------------------------------------------------

#checking if application is already installed or else install with aur helpers
if pacman -Qi $package &> /dev/null; then

echo "################################################################"
echo "################## "$package" is already installed"
echo "################################################################"

else

#checking which helper is installed
if pacman -Qi packer &> /dev/null; then

echo "Installing with packer"
packer -S --noconfirm --noedit $package

elif pacman -Qi pacaur &> /dev/null; then

echo "Installing with pacaur"
pacaur -S --noconfirm --noedit $package

elif pacman -Qi yaourt &> /dev/null; then

echo "Installing with yaourt"
yaourt -S --noconfirm $package

fi

# Just checking if installation was successful
if pacman -Qi $package &> /dev/null; then

echo "################################################################"
echo "######### "$package" has been installed"
echo "################################################################"

else

echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
echo "!!!!!!!!! "$package" has NOT been installed"
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"

fi

fi



package="discord-canary"
command="discord"
Expand All @@ -33,20 +84,20 @@ else
packer -S --noconfirm --noedit $package

elif pacman -Qi pacaur &> /dev/null; then

echo "Installing with pacaur"
pacaur -S --noconfirm --noedit $package

elif pacman -Qi yaourt &> /dev/null; then

echo "Installing with yaourt"
yaourt -S --noconfirm $package

fi

# Just checking if installation was successful
if pacman -Qi $package &> /dev/null; then

echo "################################################################"
echo "######### "$package" has been installed"
echo "################################################################"
Expand All @@ -59,4 +110,4 @@ else

fi

fi
fi

0 comments on commit be5f069

Please sign in to comment.