From 11a31904a39d7bb79f38ae525e6a77da5ec2583b Mon Sep 17 00:00:00 2001 From: gc Date: Mon, 28 Mar 2005 15:29:22 +0000 Subject: [PATCH] disable clean as long as it's dangerous --- bin/booh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/booh b/bin/booh index 9f2b4de..770f9ec 100755 --- a/bin/booh +++ b/bin/booh @@ -40,7 +40,7 @@ $options = [ [ '--source', '-s', GetoptLong::REQUIRED_ARGUMENT, _("Directory which contains original images/videos as files or subdirs") ], [ '--destination', '-d', GetoptLong::REQUIRED_ARGUMENT, _("Directory which will contain the web-album") ], - [ '--clean', '-c', GetoptLong::NO_ARGUMENT, _("Clean destination directory") ], +# [ '--clean', '-c', GetoptLong::NO_ARGUMENT, _("Clean destination directory") ], [ '--theme', '-t', GetoptLong::REQUIRED_ARGUMENT, _("Select HTML theme to use") ], [ '--config', '-C', GetoptLong::REQUIRED_ARGUMENT, _("File containing config listing images and videos within directories with captions") ], @@ -90,8 +90,8 @@ def handle_options if $dest != make_dest_filename($dest) die __("Sorry, destination directory can't contain non simple alphanumeric characters.") end - when '--clean' - system("rm -rf #{$dest}") +# when '--clean' +# system("rm -rf #{$dest}") when '--theme' select_theme(arg) -- 2.30.4