Skip to content

Commit 21dc2d1

Browse files
committed
dafaq
1 parent ea4e30b commit 21dc2d1

File tree

1 file changed

+6
-20
lines changed

1 file changed

+6
-20
lines changed

shelldio.sh

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -15,27 +15,13 @@
1515

1616
### Colors
1717
if [ -t 1 ]; then
18-
RED=$(printf '\033[31m')
19-
BLUE=$(printf '\033[34m')
20-
RESET=$(printf '\033[m')
18+
RED=$(printf '\033[31m')
19+
BLUE=$(printf '\033[34m')
20+
RESET=$(printf '\033[m')
2121
else
22-
RED=""
23-
BLUE=""
24-
RESET=""
25-
fielif [[ $input_play = "r" ]] || [[ $input_play = "R" ]]; then
26-
for pid in $(pgrep '^mpv$'); do
27-
url="$(ps -o command= -p "$pid" | awk '{print $2}')"
28-
if [[ "$url" == "$stathmos_url" ]]; then
29-
kill "$pid"
30-
fi
31-
done
32-
clear
33-
echo "Επιστροφή στη λίστα σταθμών"
34-
tput cnorm # Εμφάνιση cursor
35-
sleep 1
36-
clear
37-
input_play="" # <--- Reset input_play to avoid infinite reload
38-
break # <--- Break to outer loop to show the list again
22+
RED=""
23+
BLUE=""
24+
RESET=""
3925
fi
4026

4127
### Variable List

0 commit comments

Comments
 (0)