File tree 2 files changed +9
-16
lines changed
2 files changed +9
-16
lines changed Original file line number Diff line number Diff line change 1
1
# shellcheck shell=bash
2
2
3
- # TODO: autogen by basalt
4
- if [ -z " $BASALT_PACKAGE_PATH " ]; then
5
- if [ " ${BASH_SOURCE[0]:: 1} " = / ]; then
6
- BASALT_PACKAGE_PATH=" ${BASH_SOURCE[0]%/* } "
7
- else
8
- BASALT_PACKAGE_PATH=" $( CDPATH=; cd " ${BASH_SOURCE[0]%/* } " & > /dev/null; printf " $PWD " ) "
9
- fi
10
- fi
11
-
12
- for f in " $BASALT_PACKAGE_PATH " /pkg/lib/{,source/,util/}?* .sh; do
13
- source " $f "
14
- done
3
+ basalt.load () {
4
+ for f in " $BASALT_PACKAGE_PATH " /pkg/lib/{,source/,util/}?* .sh; do
5
+ source " $f "
6
+ done
7
+ }
Original file line number Diff line number Diff line change 3
3
# TODO: test for -u and -o pipefail
4
4
set -e
5
5
6
+ basalt-package-init
7
+ eval " $( basalt-package-init) " ; basalt-package.init
8
+ # basalt-package.load_dependencies
9
+
6
10
load ' ../load.bash'
7
11
load ' ./util/test_util.sh'
8
12
9
- eval " $( basalt global init bash) "
10
- basalt-load ' github.com/ztombol/bats-support'
11
- basalt-load ' github.com/ztombol/bats-assert'
12
-
13
13
setup () {
14
14
cd " $BATS_TEST_TMPDIR "
15
15
}
You can’t perform that action at this time.
0 commit comments