Skip to content

Commit

Permalink
Make docopt library version available as a variable for sourcing
Browse files Browse the repository at this point in the history
  • Loading branch information
andsens committed May 28, 2024
1 parent fa859b9 commit fe6e942
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docopt_sh/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def generate(self, script):
)

if self.parameters.library_path:
library = indent(f'''source {self.parameters.library_path} '{__version__}' || {{
library = indent(f'''local v='{__version__}'; source {self.parameters.library_path} "$v" || {{
ret=$?
printf -- "exit %d\\n" "$ret"
exit "$ret"
Expand Down

0 comments on commit fe6e942

Please sign in to comment.