From 7be0acbb1cd6b6d3c4c3df95611cb86be4b46915 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Tue, 21 Mar 2023 18:19:32 +0100 Subject: Drop desktop variant and rework nix packages --- shellrc.d/function | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'shellrc.d/function') 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 -- cgit v1.2.3