Skip to content

Commit

Permalink
[FEATURE] Αφαίρεση killall #28
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnGavr committed Sep 19, 2020
1 parent a3b28a1 commit e0dabdf
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions shelldio.sh
Original file line number Diff line number Diff line change
Expand Up @@ -275,15 +275,8 @@ do
echo "Έξοδος..."
exit 0
elif [[ $input_play = "r" ]] || [[ $input_play = "R" ]]; then
pid=$(ps -e | grep mpv | awk '{print $1}')
pid_url=$(ps -ef | grep "$pid" | grep mpv | awk '{print $9}')
if [[ "$pid_url" == "$stathmos_url" ]]; then
echo -e "\nΣταμάταει ο "$stathmos_url""
sleep 1
kill "$pid" &> /dev/null
else
killall -9 mpv &> /dev/null
fi
pid=$(ps -ef | grep mpv | grep "$stathmos_url" | awk '{print $2}')
kill "$pid"
clear
echo "Επιστροφή στη λίστα σταθμών"
sleep 2
Expand Down

0 comments on commit e0dabdf

Please sign in to comment.