From a805783d94e20f492fa8b8a4281017f5a1b87576 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 30 Jan 2020 13:59:57 +0100 Subject: lib/intentions-queue: intent_something(): add dummy-mode `-n` --- lib/intentions-queue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/intentions-queue b/lib/intentions-queue index 9f89b82..e9b79de 100755 --- a/lib/intentions-queue +++ b/lib/intentions-queue @@ -9,12 +9,16 @@ if [ -z "${base_dir}" ]; then . '../lib/load-configuration' fi -# intent_something -# create an intention, provided on stdin +# intent_something [-n] +# create an intention, provided on stdin - or just show the intention (-n) # note, that this function is not thread-safe - use the lock # $package_database_lock_file externally intent_something() { local next_number + if [ "x$1" = 'x-n' ]; then + cat + return + fi next_number=$(( $( find "${intentions_directory}" \ -- cgit v1.2.3