Skip to content

Commit

Permalink
Allow for a custom path to plate-solver
Browse files Browse the repository at this point in the history
  • Loading branch information
wtgee authored Jul 17, 2018
1 parent c952500 commit 7b329a1
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions scripts/solve_field.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
#!/bin/bash

SOLVE_FIELD="${PANDIR}/astrometry/bin/solve-field"
# If SOLVE_FIELD is not set, try the default; warn if default unavailable.
SOLVE_FIELD=${SOLVE_FIELD:-"${PANDIR}/astrometry/bin/solve-field"}
if [ ! -f $SOLVE_FIELD ]
then
echo 2>&1 ""
echo 2>&1 "Please install astrometry into ${PANDIR}/astrometry to enable $0"
echo 2>&1 ""
exit 3 # Command not found
echo 2>&1 ""
echo 2>&1 "Please install astrometry into ${PANDIR}/astrometry to enable $0"
echo 2>&1 ""
exit 3 # Command not found
fi

if [[ $# == 1 ]]; then
Expand Down

0 comments on commit 7b329a1

Please sign in to comment.