added some command line checks
This commit is contained in:
22
run
22
run
@ -1,5 +1,27 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
function help() {
|
||||||
|
echo "Load conda env and run a script"
|
||||||
|
echo
|
||||||
|
echo "usage: $0 a_script.py"
|
||||||
|
}
|
||||||
|
|
||||||
|
while getopts ":h" option; do
|
||||||
|
case $option in
|
||||||
|
h)
|
||||||
|
help
|
||||||
|
exit 1;;
|
||||||
|
\?)
|
||||||
|
help
|
||||||
|
exit 1;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
if [[ -z $@ ]]; then
|
||||||
|
help
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
source /sf/alvra/applications/miniconda3/etc/profile.d/conda.sh
|
source /sf/alvra/applications/miniconda3/etc/profile.d/conda.sh
|
||||||
conda activate adaq
|
conda activate adaq
|
||||||
source /sf/eido/source-python
|
source /sf/eido/source-python
|
||||||
|
Reference in New Issue
Block a user