Create pacman alias only, if pacman available

This commit is contained in:
Benedikt Heine 2017-09-22 13:29:45 +02:00 committed by Felix Buehler
parent b37ff1b7fc
commit 75e192f01f

View file

@ -67,7 +67,7 @@ if [ ! -z "$(type sudo 2>/dev/null)" -a "$USER" != 'root' ]; then
done done
unset sudo unset sudo
pacman(){ type pacman >/dev/null 2>&1 && pacman(){
local sudo_needed local sudo_needed
# Check if pacman has -S, -R or -U option # Check if pacman has -S, -R or -U option
# which should indicate in most times if we need sudo # which should indicate in most times if we need sudo