From dbb7a3d45914e777507a1087c3644ed72a46d527 Mon Sep 17 00:00:00 2001
From: Daniel Baumann <daniel@debian.org>
Date: Thu, 11 Sep 2008 08:44:15 +0200
Subject: Correcting wrong logic in lh_cleans check for beeing in the config
directory or not (in order to prevent accidental cleaning by the user).
---
helpers/lh_clean | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/helpers/lh_clean b/helpers/lh_clean
index a6dd3f8..aafef4f 100755
--- a/helpers/lh_clean
+++ b/helpers/lh_clean
@@ -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
--
cgit v1.0