Skip to content

Commit

Permalink
Update unskript-ctl.sh (#943)
Browse files Browse the repository at this point in the history
  • Loading branch information
jayasimha-raghavan-unskript authored Dec 22, 2023
1 parent 48a68e9 commit c6498a8
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion unskript-ctl/unskript-ctl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,12 @@
# and Run the runbook

cd /usr/local/bin
/opt/conda/bin/python ./unskript_ctl.py "$@"
if [ -f "/opt/conda/bin/python" ];
then
/opt/conda/bin/python ./unskript_ctl.py "$@"
elif [ -f "/opt/unskript/bin/python" ];
then
/opt/unskript/bin/python ./unskript_ctl.py "$@"
else
/usr/bin/env python ./unskript_ctl.py "$@"
fi

0 comments on commit c6498a8

Please sign in to comment.