From 3e4d4870c9b7506c7a114fdb8789f78fd551c171 Mon Sep 17 00:00:00 2001 From: Alexey Neyman Date: Tue, 13 Dec 2016 18:40:47 -0800 Subject: Simplify config saving. Instead of hardcoding defaults in saveSample.sh.in, have the same defaults in config. Then we can just remove them when saving the config. --- config/global/logging.in | 3 +-- config/global/paths.in | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'config/global') diff --git a/config/global/logging.in b/config/global/logging.in index 0c77e88a..a7e7696e 100644 --- a/config/global/logging.in +++ b/config/global/logging.in @@ -5,8 +5,7 @@ comment "Logging" choice bool prompt "Maximum log level to see:" - default LOG_INFO if !DEBUG_CT - default LOG_DEBUG if DEBUG_CT + default LOG_EXTRA config LOG_ERROR bool diff --git a/config/global/paths.in b/config/global/paths.in index 5e9bcc42..308d8d11 100644 --- a/config/global/paths.in +++ b/config/global/paths.in @@ -5,7 +5,7 @@ comment "Paths" config LOCAL_TARBALLS_DIR string prompt "Local tarballs directory" if ! BACKEND - default "" + default "${HOME}/src" help If you have previously downloaded the tarballs, enter the PATH where you stored them here. @@ -14,7 +14,7 @@ config SAVE_TARBALLS bool prompt "Save new tarballs" if ! BACKEND depends on LOCAL_TARBALLS_DIR != "" || BACKEND - default y if BACKEND + default y help If you say 'y' here, new downloaded tarballs will be saved in the directory you entered above. -- cgit v1.2.3