diff --git a/install b/install index cb0928e..d81d328 100755 --- a/install +++ b/install @@ -41,14 +41,19 @@ else fi fi fi + echo "Installing..." + # remove existing comfortable-swipe if [ -x "$(command -v $PROGRAM)" ]; then sudo rm -f $(which comfortable-swipe) fi + +# compile library sudo $DIR/src/compile $PROGRAM || abort -GROUP=$(ls -l /dev/input/event* | awk '{print $4}' | head --line=1) || abort +# add permissions to input group (defer) +# GROUP=$(ls -l /dev/input/event* | awk '{print $4}' | head --line=1) || abort # toggle autostart twice to refresh any changes $PROGRAM autostart > /dev/null || abort @@ -57,4 +62,4 @@ $PROGRAM autostart > /dev/null || abort echo "Successfully installed comfortable-swipe." echo "Configuration file is located at $CONF_PATH" echo "" -echo "Try running 'comfortable-swipe start' to test." \ No newline at end of file +echo "Try running 'comfortable-swipe start' to test."