Skip to content

Commit

Permalink
Fixed clean.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
stablestud committed May 23, 2018
1 parent 1c79303 commit 301753a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Empty file modified LICENSE
100755 → 100644
Empty file.
Empty file modified README.md
100755 → 100644
Empty file.
Empty file modified TODO.md
100755 → 100644
Empty file.
16 changes: 8 additions & 8 deletions misc/clean.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,22 @@ 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
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
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
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
if [ -f "${source_dir_path}/sources.list" ]; then
rm "${source_dir_path}/sources.list" -f
echo "Removed sources.list"
fi

0 comments on commit 301753a

Please sign in to comment.