Skip to content

Commit

Permalink
Υποστήριξη Macos
Browse files Browse the repository at this point in the history
  • Loading branch information
drpaneas committed Sep 18, 2020
1 parent be6aa85 commit 7f390ac
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions shelldio.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,9 @@ do
# Έλεγχος αν το input είναι μέσα στο εύρος της λίστας των σταθμών
if [ "$input" -gt 0 ] && [ "$input" -le $num ];
then
stathmos_name=$(< "$stations" head -n$(( "$input" )) | tail -n1 | cut -d "," -f1)
stathmos_url=$(< "$stations" head -n$(( "$input" )) | tail -n1 | cut -d "," -f2)
station=$(sed "${input}q;d" "$stations")
stathmos_name=$(echo "$station" | cut -d "," -f1)
stathmos_url=$(echo "$station" | cut -d "," -f2)
break
else
echo "Αριθμός εκτός λίστας"
Expand Down

0 comments on commit 7f390ac

Please sign in to comment.