mirror of
https://codeberg.org/Yael-II/Astrobs-Tools.git
synced 2026-03-15 03:16:27 +01:00
Some fresh air
This commit is contained in:
16
Astrobs-Tools.sh
Executable file
16
Astrobs-Tools.sh
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
source activate.sh
|
||||
if ! command -v python3 2>&1 >/dev/null; then
|
||||
printf "\033[91mError: Please install python3 or newer version\033[0m\n"
|
||||
else
|
||||
version=$(pip3 freeze | sed -r "s/==|\./ /g" | awk '$1 == "astropy" {print $2}')
|
||||
if [ -z $version ]; then
|
||||
printf "\033[91mError: Astropy 6.0 is required\033[0m\n"
|
||||
elif [ $version -lt 6 ]; then
|
||||
printf "\033[91mError: Please install astropy 6.0 or newer version\033[0m\n"
|
||||
else
|
||||
clear
|
||||
python Source/ASTROBS_SELECT_v1.py
|
||||
fi
|
||||
fi
|
||||
Reference in New Issue
Block a user