mirror of
https://gitee.com/gfdgd-xi/deep-wine-runner
synced 2025-01-13 10:08:28 +08:00
16 lines
376 B
Plaintext
16 lines
376 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
if [ "$1" = "remove" ] || [ "$1" = "purge" ];then
|
||
|
|
||
|
echo "清理卸载残留"
|
||
|
for username in `ls /home`
|
||
|
do
|
||
|
echo /home/$username
|
||
|
if [ -d "/home/$username/.deepinwine/@deb_package_name@" ]
|
||
|
then
|
||
|
rm -rf "/home/$username/.deepinwine/@deb_package_name@"
|
||
|
fi
|
||
|
done
|
||
|
else
|
||
|
echo "非卸载,跳过清理"
|
||
|
fi
|