-
Notifications
You must be signed in to change notification settings - Fork 0
/
freeflight.sh
29 lines (28 loc) · 1.4 KB
/
freeflight.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
clear
echo ' ::::::::::::::::::: ::::::::::::::::::::::::::::::::: ::::::::::::::::::: ::: :::::::::::::: '
echo ' :+: :+: :+::+: :+: :+: :+: :+: :+: :+::+: :+: :+: '
echo ' +:+ +:+ +:++:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ '
echo ' :#::+::# +#++:++#: +#++:++# +#++:++# :#::+::# +#+ +#+ :#: +#++:++#++ +#+ '
echo ' +#+ +#+ +#++#+ +#+ +#+ +#+ +#+ +#+ +#+#+#+ +#+ +#+ '
echo ' #+# #+# #+##+# #+# #+# #+# #+# #+# #+##+# #+# #+# '
echo '### ### ########################## ############################# ### ### ### '
echo ''
echo 'Select from options below'
echo '1. Search aircraft registration 2. Search flight number'
echo '3. Run install script (run with sudo) 4. Exit'
echo ''
printf 'Selection: '
read -r selection
if [ "$selection" = "1" ]; then
echo 'Selected option 1.'
bash ./modules/aircraft-registration.sh
elif [ "$selection" = "2" ]; then
echo 'Selected option 2.'
bash ./modules/trackflight.sh
elif [ "$selection" = "3" ]; then
echo 'Selected option 3.'
bash ./modules/install.sh
elif [ "$selection" = "4" ]; then
echo 'Exiting, thank you for using FreeFlight!'
exit 0
fi