From b9e35010945b3c40b5f1cc485e575ee5a41c3ad2 Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Mon, 16 Feb 2015 02:05:13 -0800 Subject: [PATCH] update README for gitorious move --- README | 9 +++------ logq | 12 ++++++------ logq-function | 12 ++++++------ 3 files changed, 15 insertions(+), 18 deletions(-) diff --git a/README b/README index a960550..b3829e2 100644 --- a/README +++ b/README @@ -4,12 +4,9 @@ script files which sit next to this file. Files ending in -function are for sourcing then calling as a function. Files without -function are exactly the same except they are for calling as a script. -Patches and bugs are very welcome via gitlab. - -Questions, feedback, etc are very welcome via email to Ian Kelling -. I will add any useful questions, answers, etc. to this -file. If a mailing list / forum is ever called for, I will start one. +Patches, bugs, and any feedback is very welcome via gitorious or email to +Ian Kelling . This program is also part of a collection of programs, -https://gitlab.com/iankelling/bash-programs-by-ian, which are unrelated except +https://gitorious.org/bash-programs-by-ian, which are unrelated except having the same author and being being bash programs. diff --git a/logq b/logq index 2ac0026..bb98743 100755 --- a/logq +++ b/logq @@ -18,7 +18,7 @@ alphanumeric characters of COMMAND + ARGs." $help" return 1 fi - + local index=0 local x prettycommand for x in "$@"; do @@ -26,12 +26,12 @@ $help" index=$(( index+1 )) done - + local file="$*" file="$(mktemp -d)/${file//[^[:alnum:]]/}" - printf "%s\n%s\n\n" "log of $prettycommand" "$(date)" >"$file" - + printf "%s\n%s\n\n" "log of $prettycommand" "$(date)" >"$file" + # we will propagate any errors local e=$- [[ $e == *e* ]] && set +e @@ -40,10 +40,10 @@ $help" [[ $e == *e* ]] && set -e printf "\n%s\n%s\n%s" "----------------" "$(date)" "end of log" >>"$file" - + echo -n "\$?=$ret " echo -n "$prettycommand" echo "[log] $file" return $ret -} +} logq "$@" diff --git a/logq-function b/logq-function index 8b93064..afe722f 100644 --- a/logq-function +++ b/logq-function @@ -18,7 +18,7 @@ alphanumeric characters of COMMAND + ARGs." $help" return 1 fi - + local index=0 local x prettycommand for x in "$@"; do @@ -26,12 +26,12 @@ $help" index=$(( index+1 )) done - + local file="$*" file="$(mktemp -d)/${file//[^[:alnum:]]/}" - printf "%s\n%s\n\n" "log of $prettycommand" "$(date)" >"$file" - + printf "%s\n%s\n\n" "log of $prettycommand" "$(date)" >"$file" + # we will propagate any errors local e=$- [[ $e == *e* ]] && set +e @@ -40,9 +40,9 @@ $help" [[ $e == *e* ]] && set -e printf "\n%s\n%s\n%s" "----------------" "$(date)" "end of log" >>"$file" - + echo -n "\$?=$ret " echo -n "$prettycommand" echo "[log] $file" return $ret -} +} -- 2.30.2