8229e76fc318e703dda4fbd5557b22112ee627af max Mon Feb 5 06:52:54 2024 -0800 fixing typo in browserSetup.sh that lead to corrupted script diff --git src/product/installer/browserSetup.sh src/product/installer/browserSetup.sh index fd2c128..23eff32 100644 --- src/product/installer/browserSetup.sh +++ src/product/installer/browserSetup.sh @@ -1,24 +1,25 @@ #!/bin/bash # script to install/setup dependencies for the UCSC genome browser CGIs # call it like this as root from a command line: bash browserSetup.sh # you can easily debug this script with 'bash -x browserSetup.sh', it # will show all commands then -exec > >(tee -a "${HOME}/browserSetup.sh") 2>&1 +# keep a log file in browserSetup.log +exec > >(tee -a "${HOME}/browserSetup.log") 2>&1 set -u -e -o pipefail # fail on unset vars and all errors, also in pipes # set all locale settings to English # searching for certain strings in command output might fail, if locale is different export LANG=C exitHandler() { if [ "$1" == "100" -o "$1" == "0" ] ; then exit $1 # all fine, a specific error message has already been output fi # somehow this script exited with an unknown type of error code echo Exit error $1 occurred on line $2 echo The UCSC Genome Browser installation script exited with an error.