Skip to content

Commit a589fa5

Browse files
committed
[fix] : Do not use remove function
1 parent ff6c558 commit a589fa5

1 file changed

Lines changed: 2 additions & 18 deletions

File tree

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,6 @@
11
#!/usr/bin/env bash
22

3-
# Delete file only if file exists
4-
# remove <file1> <file2> ...
5-
function remove () {
6-
local _list
7-
local _file
8-
_list=($(echo "$@"))
9-
for _file in "${_list[@]}"; do
10-
if [[ -f ${_file} ]]; then
11-
rm -f "${_file}"
12-
elif [[ -d ${_file} ]]; then
13-
rm -rf "${_file}"
14-
fi
15-
done
16-
}
17-
18-
19-
# Replace wlogo.
20-
remove "/usr/share/lxde/images/logout-banner.png"
3+
# Replace logo.
4+
rm -rf "/usr/share/lxde/images/logout-banner.png"
215
ln -s "/usr/share/lxde/images/alterlinux.png" "/usr/share/lxde/images/logout-banner.png"
226
chmod 644 "/usr/share/lxde/images/logout-banner.png"

0 commit comments

Comments
 (0)