[SCM] debian-live/live-helper branch, master, updated. 1.0_a35-1-19-g4c91fd7

Daniel Baumann daniel at debian.org
Mon Nov 12 21:31:29 UTC 2007


The branch, master has been updated
       via  4c91fd7d9664850f38361054e69cd55d36763a8d (commit)
      from  fb1e3ce43a00114cef8aa3447b7bde57368dc645 (commit)


- Shortlog ------------------------------------------------------------
4c91fd7 Adding a check to see if user is running lh_clean from a sane location (i.e. not config/), thanks to Kai Hendry <hendry at webconverger.com>.

Summary of changes:
 helpers/lh_clean |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
-----------------------------------------------------------------------
Details of changes:

commit 4c91fd7d9664850f38361054e69cd55d36763a8d
Author: Daniel Baumann <daniel at debian.org>
Date:   Mon Nov 12 22:31:06 2007 +0100

    Adding a check to see if user is running lh_clean from a sane location (i.e. not config/), thanks to Kai Hendry <hendry at webconverger.com>.

diff --git a/helpers/lh_clean b/helpers/lh_clean
index 3fa8fc5..166c867 100755
--- a/helpers/lh_clean
+++ b/helpers/lh_clean
@@ -42,6 +42,13 @@ else
 	ARGUMENTS="${@}"
 fi
 
+# Avoid cases were users accidentally nuke their config/binary
+if [ ! -d config ] || [ "$(basename ${PWD})" = "config" ]
+then
+	Echo_error "${PWD} is not a good Debian Live working directory to clean."
+	exit 1
+fi
+
 for ARGUMENT in ${ARGUMENTS}
 do
 	case "${ARGUMENT}" in

-- 
debian-live/live-helper



More information about the debian-live-changes mailing list