Fix DIR issues
This commit is contained in:
parent
0c52b23168
commit
c11012dcbf
5 changed files with 11 additions and 5 deletions
|
@ -10,7 +10,7 @@
|
||||||
#===============================================================================
|
#===============================================================================
|
||||||
|
|
||||||
|
|
||||||
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
DIR=$( dirname $( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ))
|
||||||
DRY_RUN=false
|
DRY_RUN=false
|
||||||
POSITION="none"
|
POSITION="none"
|
||||||
SOURCES_TXT="$( dirname $DIR)/sources.txt"
|
SOURCES_TXT="$( dirname $DIR)/sources.txt"
|
||||||
|
|
|
@ -13,7 +13,8 @@
|
||||||
set -o nounset
|
set -o nounset
|
||||||
set -o errexit
|
set -o errexit
|
||||||
|
|
||||||
. lib/common.sh
|
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
||||||
|
. "$DIR"/lib/common.sh
|
||||||
|
|
||||||
prepare_sandbox () {
|
prepare_sandbox () {
|
||||||
$CABAL sandbox init
|
$CABAL sandbox init
|
||||||
|
|
|
@ -14,7 +14,10 @@
|
||||||
set -o nounset
|
set -o nounset
|
||||||
set -o errexit
|
set -o errexit
|
||||||
|
|
||||||
. lib/common.sh
|
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
||||||
|
. "$DIR"/lib/common.sh
|
||||||
|
|
||||||
|
GHC_FLAGS="-Werror"
|
||||||
|
|
||||||
prepare_sandbox () {
|
prepare_sandbox () {
|
||||||
$CABAL sandbox init
|
$CABAL sandbox init
|
||||||
|
|
|
@ -11,7 +11,8 @@
|
||||||
set -o nounset
|
set -o nounset
|
||||||
set -o errexit
|
set -o errexit
|
||||||
|
|
||||||
. lib/common.sh
|
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
||||||
|
. "$DIR"/lib/common.sh
|
||||||
|
|
||||||
for s in ${SOURCES[@]} ; do
|
for s in ${SOURCES[@]} ; do
|
||||||
echo $s
|
echo $s
|
||||||
|
|
|
@ -15,7 +15,8 @@
|
||||||
set -o nounset
|
set -o nounset
|
||||||
set -o errexit
|
set -o errexit
|
||||||
|
|
||||||
. lib/common.sh
|
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
||||||
|
. "$DIR"/lib/common.sh
|
||||||
|
|
||||||
usage () {
|
usage () {
|
||||||
echo " upload.sh <USER> <PASSWORD>"
|
echo " upload.sh <USER> <PASSWORD>"
|
||||||
|
|
Loading…
Reference in a new issue