Source

SageTeX / spkg-install

Full commit
#!/usr/bin/env bash

if [ "$SAGE_LOCAL" = "" ]; then
   echo "SAGE_LOCAL undefined ... exiting";
   echo "Maybe run 'sage -sh'?"
   exit 1
fi

python setup.py install

if [ $? -ne 0 ]; then
   echo "Error installing SageTeX."
   exit 1
fi