Correcting wrong logic in lh_cleans check for beeing in the config directory or not (in order to prevent accidental cleaning by the user).

This commit is contained in:
Daniel Baumann 2008-09-11 08:44:15 +02:00
parent 1102bca971
commit dbb7a3d459
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ Read_conffile config/all config/common config/bootstrap config/chroot config/bin
Set_defaults
# Avoid cases were users accidentally nuke their config/binary
if [ ! -d config ] || [ "$(basename ${PWD})" = "config" ]
if [ ! -d config ] && [ "$(basename ${PWD})" = "config" ]
then
Echo_error "%s is not a good Debian Live working directory to clean." "${PWD}"
exit 1