Skip to content
This repository has been archived by the owner on Sep 7, 2020. It is now read-only.

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
CyanJDroid authored Mar 5, 2017
1 parent dc4b098 commit 6feeb1a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion autoclick.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,15 @@ if which pacman >/dev/null; then
if ! pacman -Qq | grep -qw xdotool; then
echo -e "${RED}xdotool not found, installing, this may ask for your password...${NC}"
sleep 2
sudo pacman -S xdotool
sudo pacman -Sy xdotool
fi
#check if apt is installed, if it is use it to check if xdotool is instaled and install it if it isn't
#elif command -v apt >/dev/null; then
elif which apt >/dev/null; then
if ! dpkg -l | grep -qw xdotool; then
echo -e "${RED}xdotool not found, installing, this may ask for your password...${NC}"
sleep 2
sudo apt-get update
sudo apt-get install xdotool
fi
#if both pacman and apt couldn't be found, report error
Expand Down

0 comments on commit 6feeb1a

Please sign in to comment.