Commit 6b450d23 authored by Andrea Valassi's avatar Andrea Valassi
Browse files

Fixes related to CORALCOOL-2823


git-svn-id: file:///git/lcgcool.svndb/cool/tags/COOL_3_1_0@19793 4525493e-7705-40b1-a816-d608a930855b
parent 8187b02a
#!/bin/bash
if [ "$BASH_SOURCE" != "$0" ]; then # See CORALCOOL-2823
echo "ERROR! This script was sourced?" > /dev/stderr
return 1
fi
topdir=`dirname $0`
topdir=`cd $topdir; pwd`
......
#!/bin/bash
if [ "$BASH_SOURCE" != "$0" ]; then # See CORALCOOL-2823
echo "ERROR! This script was sourced?" > /dev/stderr
return 1
fi
topdir=`dirname $0`
topdir=`cd $topdir; pwd`
......
if [ "$BASH_SOURCE" = "$0" ]; then # See CORALCOOL-2823
echo "ERROR! The setup script was not sourced?" > /dev/stderr
exit 1
elif [ "$BASH_SOURCE" = "" ]; then
echo "ERROR! The setup script was not sourced from bash?" > /dev/stderr
return 1
fi
# Check arguments
if [ "$1" == "-q" ] || [ "$1" == "--quiet" ]; then
quiet=1
......@@ -7,10 +15,6 @@ else
fi
# Determine the path to this sourced script
if [ "$BASH_SOURCE" == "" ]; then
echo "ERROR! The setup script was not sourced?" > /dev/stderr
return 1
fi
topdir=`dirname ${BASH_SOURCE}`
topdir=`cd ${topdir}; pwd`
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment