summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2008-09-11 08:44:15 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:03:41 +0100
commitdbb7a3d45914e777507a1087c3644ed72a46d527 (patch)
tree0644ce784644224d256876d865004914d22a2027
parent1102bca97190a5c9f7f0aeaf5e0b3df1bfc15827 (diff)
downloadvyos-live-build-dbb7a3d45914e777507a1087c3644ed72a46d527.tar.gz
vyos-live-build-dbb7a3d45914e777507a1087c3644ed72a46d527.zip
Correcting wrong logic in lh_cleans check for beeing in the config directory or not (in order to prevent accidental cleaning by the user).
-rwxr-xr-xhelpers/lh_clean2
1 files changed, 1 insertions, 1 deletions
diff --git a/helpers/lh_clean b/helpers/lh_clean
index a6dd3f8f4..aafef4f72 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