[SCM] Debian Live build scripts branch, master, updated. 1.0.0-2-34-g26a1cfc

Daniel Baumann daniel at debian.org
Thu Sep 11 06:44:54 UTC 2008


The following commit has been merged in the master branch:
commit 26a1cfce5afd323d2921344a03b63f5638419578
Author: Daniel Baumann <daniel at debian.org>
Date:   Thu Sep 11 08:44:15 2008 +0200

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

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

-- 
Debian Live build scripts



More information about the debian-live-changes mailing list