summarylogtreecommitdiffstats
path: root/wudao-dict-git.install
diff options
context:
space:
mode:
authorBen2021-03-15 11:40:25 +0800
committerBen2021-03-15 11:40:25 +0800
commitc7776c412779bce98151731c3cf9967f25772dd5 (patch)
tree6b35a188499afa18014e80d9a056f079cda354e9 /wudao-dict-git.install
parentdc8fd78c750734e4715ea086f358b593b476d205 (diff)
downloadaur-c7776c412779bce98151731c3cf9967f25772dd5.tar.gz
Moving working directory from / to $HOME
1. Referring to deepin-wine, the working directory is moved to the user's home directory('$HOME/.local/share/wudao-dict') and the 777 permission of 'usr' is removed. 1. Create: /usr/bin/wd at the first time. 2. Remove: 'wudao-dict-git.install'. 2. Only sub-directory is installed.
Diffstat (limited to 'wudao-dict-git.install')
-rw-r--r--wudao-dict-git.install4
1 files changed, 4 insertions, 0 deletions
diff --git a/wudao-dict-git.install b/wudao-dict-git.install
new file mode 100644
index 000000000000..db1675f4be03
--- /dev/null
+++ b/wudao-dict-git.install
@@ -0,0 +1,4 @@
+pre_remove() {
+ echo "deleting the wudao-dict bottle..."
+ find /home -maxdepth 2 -name ".local" -exec rm -rf \{\}/share/wudao-dict/ \;
+}