Skip to content

Commit 59ed3a9

Browse files
committed
chore: add quotes to rm command in postrm script
Quote variables in rm -rf command to prevent globbing and word splitting, addressing shellcheck SC2086 warning for safer package removal. log: add quotes to rm command in postrm script
1 parent 5eb8049 commit 59ed3a9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

debian/deepin-terminal.postrm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
#DEBHELPER#
55

66
userName=$(who)
7-
if [ $1 = "purge" ]; then
8-
rm -rf /home/${userName%% *}/.config/deepin/deepin-terminal/*
7+
if [ "$1" = "purge" ]; then
8+
rm -rf "/home/${userName%% *}/.config/deepin/deepin-terminal/"*
99

1010
#解决安装终端后/nonexistent目录下会残留install_flag配置文件的问题
1111
if [ -f /nonexistent/.config/deepin/deepin-terminal/install_flag ]

0 commit comments

Comments
 (0)