From 76d736e615b2277edee59888cc1ad69cefba5ab2 Mon Sep 17 00:00:00 2001 From: midipix Date: Tue, 2 Nov 2021 23:33:46 +0000 Subject: once/install.sh: added --output= support for diverting stdout & stderr output. --- once/install.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/once/install.sh b/once/install.sh index 3706c57..cbdd52b 100755 --- a/once/install.sh +++ b/once/install.sh @@ -1,5 +1,14 @@ #!/bin/sh +if [ $# = 1 ]; then + case "$1" in + --output=*) + exec 1>${1#*=} + exec 2>&1 + ;; + esac +fi + export PS1='\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$ ' export HOME=/home/midipix -- cgit v1.2.3