#!/bin/sh [ ! "$UID" = 0 ] && echo "You must run this script as root" && exit 1 echo "Installing..." set -ex cp libhooks.so /usr/lib64/fcitx5/ cp hooks.conf /usr/share/fcitx5/addon/