summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rwxr-xr-xlib/intentions-queue8
1 files 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}" \