Fix DIR issues

This commit is contained in:
Julian K. Arni 2015-06-05 15:08:52 +02:00
parent aec39b546e
commit a621b1d854
5 changed files with 11 additions and 5 deletions

View file

@ -10,7 +10,7 @@
#===============================================================================
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
DIR=$( dirname $( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ))
DRY_RUN=false
POSITION="none"
SOURCES_TXT="$( dirname $DIR)/sources.txt"

View file

@ -13,7 +13,8 @@
set -o nounset
set -o errexit
. lib/common.sh
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
. "$DIR"/lib/common.sh
prepare_sandbox () {
$CABAL sandbox init

View file

@ -14,7 +14,10 @@
set -o nounset
set -o errexit
. lib/common.sh
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
. "$DIR"/lib/common.sh
GHC_FLAGS="-Werror"
prepare_sandbox () {
$CABAL sandbox init

View file

@ -11,7 +11,8 @@
set -o nounset
set -o errexit
. lib/common.sh
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
. "$DIR"/lib/common.sh
for s in ${SOURCES[@]} ; do
echo $s

View file

@ -15,7 +15,8 @@
set -o nounset
set -o errexit
. lib/common.sh
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
. "$DIR"/lib/common.sh
usage () {
echo " upload.sh <USER> <PASSWORD>"