Cut isn't needed here
This commit is contained in:
parent
a3e76f32b8
commit
9ad912fe4e
1 changed files with 1 additions and 1 deletions
|
@ -229,7 +229,7 @@ continentcode=$(echo "$chosen" | sed "s/:.*//")
|
|||
radarcode=$(echo "$chosen" | sed "s/..: // ; s/:.*//")
|
||||
|
||||
# Sanity check of selection and ensure user did not escape.
|
||||
echo "$radarcode" | grep -q "^[A-Z]\+$" && printf "$continentcode,$radarcode" | cut -d' ' -f1 > "$radarloc" ;}
|
||||
echo "$radarcode" | grep -q "^[A-Z]\+$" && printf "%s,%s\\n" "$continentcode" "$radarcode" > "$radarloc" ;}
|
||||
|
||||
getdoppler() {
|
||||
cont="$(cat "$radarloc" | sed "s/,.*//")"
|
||||
|
|
Loading…
Reference in a new issue