update install script, move more constant to global vars

This commit is contained in:
urban
2023-08-28 05:59:26 +02:00
parent 41de86323c
commit 98e229c3d9
6 changed files with 169 additions and 50 deletions

View File

@@ -50,7 +50,7 @@ spin_it(){
shift
local command=$@
local hash=$(echo -n "$command" | md5sum | awk '{print $1}')
local logfile="/tmp/shuriken/$hash.txt"
local logfile="$TMP_DIRECTORY/$hash.txt"
"$@" > $logfile 2>&1 &
chars=(" ⠋ " " ⠙ " " ⠹ " " ⠸ " " ⠼ " " ⠴ " " ⠦ " " ⠧ " " ⠇ " " ⠏ ")
pid=$!