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:
parent
1102bca971
commit
dbb7a3d459
|
@ -29,7 +29,7 @@ Read_conffile config/all config/common config/bootstrap config/chroot config/bin
|
||||||
Set_defaults
|
Set_defaults
|
||||||
|
|
||||||
# Avoid cases were users accidentally nuke their config/binary
|
# Avoid cases were users accidentally nuke their config/binary
|
||||||
if [ ! -d config ] || [ "$(basename ${PWD})" = "config" ]
|
if [ ! -d config ] && [ "$(basename ${PWD})" = "config" ]
|
||||||
then
|
then
|
||||||
Echo_error "%s is not a good Debian Live working directory to clean." "${PWD}"
|
Echo_error "%s is not a good Debian Live working directory to clean." "${PWD}"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Reference in New Issue