RE: https://lgbtqia.space/@pronounshe/117316640915579697 Narrator: It was, in fa...

@pronounshe@lgbtqia.space

RE: lgbtqia.space/@pronounshe/1173

Narrator: It was, in fact, easy peasy.

rune=$(ps -ax | grep librewolf | grep -v grep | awk '{print $1}' | head -n 1)

while [[ -n $rune ]]
do
printf "\n\33[1;33mLibrewolf is currently running. Close before continuing.\33[0m\n"
sleep 2s
read -s -n 1 -p "Press any key to continue or ctrl-c to quit. . ."
rune=$(ps -ax | grep librewolf | grep -v grep | awk '{print $1}' | head -n 1)
printf "\n"
done
}

#Bash #ShellScript