[fix-permissions] Add sudo for g++ compilation

This commit is contained in:
Rico Tiongson 2018-02-28 00:51:46 +08:00
parent 46db0b7f14
commit 20f99dbf7f

View File

@ -45,7 +45,7 @@ else
fi
echo "Installing..."
# mkdir -p ~/.local/bin
g++ -std=c++11 -O2 $DIR/src/comfortable-swipe.cpp -lxdo -o $PROGRAM || exec echo "Installation aborted"
sudo g++ -std=c++11 -O2 $DIR/src/comfortable-swipe.cpp -lxdo -o $PROGRAM || exec echo "Installation aborted"
GROUP=$(ls -l /dev/input/event* | awk '{print $4}' | head --line=1) || abort