Skip to content

Commit 329fea1

Browse files
committed
use readlink instead of realpath for wider compatibility
Signed-off-by: Rob Frawley 2nd <[email protected]>
1 parent d99f968 commit 329fea1

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.travis.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@
99
## file distributed with this source code.
1010
##
1111

12+
sudo: false
1213
language: bash
1314

14-
addons:
15-
apt:
16-
packages:
17-
- realpath
15+
git:
16+
depth: 3
1817

1918
env:
2019
- SHUNIT_COLOR=always
2120

2221
matrix:
22+
fast_finish: true
2323
include:
2424
- script:
2525
- bash test/bright-test.bash

lib/_bright-load.bash

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ readonly _BRIGHT_RELEASE_VERS="2.0.0"
2323
#
2424

2525
readonly _BRIGHT_ROOT_PATH="$(cd "$(dirname "$(
26-
realpath "${BASH_SOURCE[0]}" 2> /dev/null
26+
readlink -e "${BASH_SOURCE[0]}" 2> /dev/null
2727
)" 2> /dev/null)" &> /dev/null && pwd 2> /dev/null)"
2828

2929

test/bright-test.bash

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
# resolve test root directory path
2020
#
2121

22-
declare -r _TEST_ROOT_PATH="$(
23-
dirname "$(realpath -m "${BASH_SOURCE[0]}" 2> /dev/null)" 2> /dev/null
24-
)"
22+
declare -r _TEST_ROOT_PATH="$(cd "$(dirname "$(
23+
readlink -e "${BASH_SOURCE[0]}" 2> /dev/null
24+
)" 2> /dev/null)" &> /dev/null && pwd 2> /dev/null)"
2525

2626

2727
#

0 commit comments

Comments
 (0)