Update flux.sh
This commit is contained in:
parent
666c9039b7
commit
0160f35be6
18
flux.sh
18
flux.sh
|
@ -64,6 +64,24 @@ function checkupdatess {
|
|||
fi
|
||||
|
||||
}
|
||||
#Animationen
|
||||
function spinner {
|
||||
|
||||
local pid=$1
|
||||
local delay=0.15
|
||||
local spinstr='|/-\'
|
||||
while [ "$(ps a | awk '{print $1}' | grep $pid)" ]; do
|
||||
local temp=${spinstr#?}
|
||||
printf " [%c] " "$spinstr"
|
||||
local spinstr=$temp${spinstr%"$temp"}
|
||||
sleep $delay
|
||||
printf "\b\b\b\b\b\b"
|
||||
done
|
||||
printf " \b\b\b\b"
|
||||
}
|
||||
|
||||
|
||||
|
||||
function exitmode {
|
||||
|
||||
echo -e "\n\n"$Weis["$Rot" "$Weiß"] "$rot"ERROR 01"$Transparent"
|
||||
|
|
Loading…
Reference in New Issue