aboutsummaryrefslogtreecommitdiff
path: root/shellrc.d/function
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2023-03-21 18:19:32 +0100
committerKarel Kočí <cynerd@email.cz>2023-03-21 20:46:05 +0100
commit7be0acbb1cd6b6d3c4c3df95611cb86be4b46915 (patch)
treefcdca6619a05b1e72ebb8b9ddf0d04586b434e94 /shellrc.d/function
parentf0eab21bab34beb657059cf5dfe91ca8072edb35 (diff)
downloadshellrc-7be0acbb1cd6b6d3c4c3df95611cb86be4b46915.tar.gz
shellrc-7be0acbb1cd6b6d3c4c3df95611cb86be4b46915.tar.bz2
shellrc-7be0acbb1cd6b6d3c4c3df95611cb86be4b46915.zip
Drop desktop variant and rework nix packages
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