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
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