Skip to content

Commit 177308b

Browse files
committed
Update test.bats to update path
Add check if /usr/local/hestia/bin/ is loaded in $PATH variable
1 parent 374644e commit 177308b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/test.bats

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#!/usr/bin/env bats
22

3+
if [ "${PATH#*/usr/local/hestia/bin*}" = "$PATH" ]; then
4+
. /etc/profile.d/hestia.sh
5+
fi
6+
37
load 'test_helper/bats-support/load'
48
load 'test_helper/bats-assert/load'
59
load 'test_helper/bats-file/load'

0 commit comments

Comments
 (0)