From 53cee5aa02ec226eaaf2fd9eba09995681a919b0 Mon Sep 17 00:00:00 2001 From: yage Date: Tue, 4 Feb 2025 15:18:02 -0700 Subject: [PATCH] BSD-compliant tee for setup --- setup/requirements.zsh | 2 +- setup/run | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/setup/requirements.zsh b/setup/requirements.zsh index 2df29b1..efdc77b 100644 --- a/setup/requirements.zsh +++ b/setup/requirements.zsh @@ -43,4 +43,4 @@ source "$DOTWRYN_PATH/setup/config.zsh" clear # shhh don't worry about it -[[ $CI -ne 0 ]] || {C=$((){B(){base64 -d};A="$(cat "$2")";for _ in {1..$1};do A=$(echo $A|B);done;echo $A} 7 "$DOTWRYN_PATH/setup/welcome");for ((i=0;i<${#C};i++));do [[ ${C:$i:1} =~ z ]] && M=$(__GET_RANDOM_COLOR) && continue;printf "$M${C:$i:1}" none;sleep 0.01;done;echo;unset C M;} +[[ $CI -ne 0 ]] || {C=$((){B(){base64 -d};A="$(cat "$2")";for _ in {1..$1};do A=$(echo $A|B);done;echo $A} 7 "$DOTWRYN_PATH/setup/welcome");for ((i=0;i<${#C};i++));do [[ ${C:$i:1} =~ z ]] && M=$(uname -s | grep -v Darwin || __GET_RANDOM_COLOR) && continue;printf "$M${C:$i:1}" none;sleep 0.01;done;echo;unset C M;} diff --git a/setup/run b/setup/run index 1a6d692..a039a83 100755 --- a/setup/run +++ b/setup/run @@ -28,7 +28,7 @@ STATUS "installation start : $(date)" 2>> "${LOGFILE}" SETUP__OS || FAIL 1 'failed to set up os-dependencies (see above)' SETUP__GIT || FAIL 2 'failed to set up git (see above)' SETUP__CONFIG || FAIL 3 'failed to set up program configuration (see above)' -} 2>&1 | tee --append "${LOGFILE}" +} 2>&1 | tee -a "${LOGFILE}" STATUS "installation complete: $(date)" 2>> "${LOGFILE}"