-
Notifications
You must be signed in to change notification settings - Fork 10
/
clean.sh
executable file
·28 lines (21 loc) · 693 Bytes
/
clean.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh
# Cleans the scripts root directory of config files created by portable_adsorber.sh
readonly source_dir_path="$(cd "$(dirname "${0}")"/.. && pwd)"
echo "Cleaning ${source_dir_path} ..."
if [ -f "${source_dir_path}/adsorber.conf" ]; then
rm "${source_dir_path}/adsorber.conf" -f
echo "Removed adsorber.conf"
fi
if [ -f "${source_dir_path}/whitelist" ]; then
rm "${source_dir_path}/whitelist" -f
echo "Removed whitelist"
fi
if [ -f "${source_dir_path}/blacklist" ]; then
rm "${source_dir_path}/blacklist" -f
echo "Removed blacklist"
fi
if [ -f "${source_dir_path}/sources.list" ]; then
rm "${source_dir_path}/sources.list" -f
echo "Removed sources.list"
fi
echo "Done."