Update install script

This commit is contained in:
Rico Tiongson 2019-02-07 17:43:00 +08:00
parent 1d20d3801f
commit bb53e91959

View File

@ -41,14 +41,19 @@ else
fi fi
fi fi
fi fi
echo "Installing..." echo "Installing..."
# remove existing comfortable-swipe # remove existing comfortable-swipe
if [ -x "$(command -v $PROGRAM)" ]; then if [ -x "$(command -v $PROGRAM)" ]; then
sudo rm -f $(which comfortable-swipe) sudo rm -f $(which comfortable-swipe)
fi fi
# compile library
sudo $DIR/src/compile $PROGRAM || abort 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 # toggle autostart twice to refresh any changes
$PROGRAM autostart > /dev/null || abort $PROGRAM autostart > /dev/null || abort