#!/bin/bash set -e action=$1 path="/.config/kylin-aiassistant/" filename="settings.ini" if [ "$action" = "remove" ]; then for user in /home/* do if [ -f $user$path$filename ];then echo "Removing: "$user$path$filename rm $user$path$filename fi done echo "Qt application partially removed." fi if [ "$action" = "purge" ]; then for user in /home/* do if [ -f $user$path$filename ];then echo "Removing: "$user$path$filename rm $user$path$filename fi done echo "Qt application fully purged." fi exit 0