index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
-rwxr-xr-x | lib/intentions-queue | 8 |
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}" \ |