Skip to content

Sourcing a file inside the sourced file is not working #38

@seydakhan

Description

@seydakhan

I have a script file(scriptA.sh) which sources scriptB.sh;
scriptA.sh

#!/usr/bin/env bash
  source scriptB.sh

when I create commandunit script such as below and source scriptA.sh, commandunit cannot find scriptB.sh file and giving ".../scriptA.sh: line 6: /dev/scriptB.sh: No such file or directory" error message.
test.yaml

"$extends":
  - some.json
when:
  source: 
   -scriptA.sh
  cmd:
then:
  exitCode:
    - EQUAL
    - 0

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions