aboutsummaryrefslogtreecommitdiff
path: root/shellrc.d/function
diff options
context:
space:
mode:
Diffstat (limited to 'shellrc.d/function')
-rw-r--r--shellrc.d/function4
1 files changed, 2 insertions, 2 deletions
diff --git a/shellrc.d/function b/shellrc.d/function
index 2251726..3035e34 100644
--- a/shellrc.d/function
+++ b/shellrc.d/function
@@ -9,7 +9,7 @@ mcd() {
# Run process in background
tbg() {
mkdir -p /tmp/tbg-log
- nohup "$@" >/dev/null >"/tmp/tbg-log/$0-$(date +%g%m%d%H%M%S%N)" &
+ nohup "$@" >"/tmp/tbg-log/$0-$(date +%g%m%d%H%M%S%N)" &
}
# Generate random password (optionally takes length of password as first argument)
@@ -43,7 +43,7 @@ inrun () {
local tmpfs
tmpfs="$(mktemp --tmpdir inrun.XXXXXXXX)"
trap "rm '\$tmpfs'; trap '' EXIT; exit 0" EXIT INT QUIT TERM ABRT
- while [ $# -gt 0 -a "$1" != "--" ]; do
+ while [ $# -gt 0 ] && [ "$1" != "--" ]; do
echo "$1" >> "$tmpfs"
shift
done