mirror of
https://gitee.com/spark-store-project/spark-wine
synced 2025-12-19 05:21:40 +08:00
16 lines
331 B
Bash
16 lines
331 B
Bash
#!/bin/bash
|
|
if [ "$1" = "remove" ] || [ "$1" = "purge" ];then
|
|
|
|
echo "清理卸载残留"
|
|
for username in $(ls /home)
|
|
do
|
|
echo /home/$username
|
|
if [ -d /home/$username/.config/spark-wine ]
|
|
then
|
|
rm -rf /home/$username/.config/spark-wine
|
|
fi
|
|
done
|
|
else
|
|
echo "非卸载,跳过清理"
|
|
fi
|