doc: use recommended shebang approach in documentation code block #17751

pull hackerrdave wants to merge 1 commits into bitcoin:master from hackerrdave:docs-shebang changing 1 files +1 −1
  1. hackerrdave commented at 12:40 AM on December 16, 2019: contributor

    Documentation update to use recommended shebang approach mentioned in the developer notes

  2. fanquake added the label Docs on Dec 16, 2019
  3. hackerrdave force-pushed on Dec 16, 2019
  4. promag commented at 1:32 AM on December 17, 2019: member

    Have you searched for similar places were this change could be applied?

  5. hackerrdave commented at 1:50 AM on December 17, 2019: contributor

    @promag Yea, the only other place I believe that this change could be applied is: https://github.com/bitcoin/bitcoin/blob/master/test/lint/lint-shell.sh#L54

    I'll add that change as well

  6. hackerrdave force-pushed on Dec 17, 2019
  7. fanquake commented at 1:57 AM on December 17, 2019: member
  8. hackerrdave force-pushed on Dec 17, 2019
  9. in test/lint/lint-shell.sh:53 in e5e6c52781 outdated
      50 | @@ -51,7 +51,7 @@ do
      51 |      echo
      52 |      echo "$descriptor"
      53 |      # Use #!/bin/bash as gitian-builder/bin/gbuild does to complete a script.
    


    laanwj commented at 9:09 AM on December 17, 2019:

    pleas update the comment as well


    hackerrdave commented at 2:52 PM on December 17, 2019:

    updated comment


    hebasto commented at 4:55 PM on December 17, 2019:
  10. hackerrdave force-pushed on Dec 17, 2019
  11. in test/lint/lint-shell.sh:54 in 8dea322688 outdated
      49 | @@ -50,8 +50,8 @@ for descriptor in $(git ls-files -- 'contrib/gitian-descriptors/*.yml')
      50 |  do
      51 |      echo
      52 |      echo "$descriptor"
      53 | -    # Use #!/bin/bash as gitian-builder/bin/gbuild does to complete a script.
      54 | -    SCRIPT=$'#!/bin/bash\n'$(yq -r .script "$descriptor")
      55 | +    # Use #!/usr/bin/env bash to complete script with preferred shebang approach.
      56 | +    SCRIPT=$'#!/usr/bin/env bash\n'$(yq -r .script "$descriptor")
    


    hebasto commented at 4:52 PM on December 17, 2019:

    Please do not change these lines as it is intended to mimic the way gitian-builder/bin/gbuild does: #17361 (review)

    ... and the comment says so ;)


    hackerrdave commented at 5:16 PM on December 17, 2019:

    ah gotcha! Thank you for the clarification - will remove this change

  12. hebasto changes_requested
  13. use preferred shebang approach for documentation 6094222de7
  14. hackerrdave force-pushed on Dec 17, 2019
  15. hebasto approved
  16. hebasto commented at 7:07 PM on December 20, 2019: member

    ACK 6094222de7820d235e6e8c66e589aa71db08c077, I have reviewed the code, and it looks OK, I agree it can be merged.

  17. MarcoFalke referenced this in commit 0cda557340 on Dec 20, 2019
  18. MarcoFalke merged this on Dec 20, 2019
  19. MarcoFalke closed this on Dec 20, 2019

  20. sidhujag referenced this in commit 54ccaf1dad on Dec 20, 2019
  21. jasonbcox referenced this in commit be4866e55d on Nov 9, 2020
  22. sidhujag referenced this in commit 886f68fdd9 on Nov 10, 2020
  23. PastaPastaPasta referenced this in commit bee6af3f12 on Jun 27, 2021
  24. PastaPastaPasta referenced this in commit 2ac390ff91 on Jun 28, 2021
  25. PastaPastaPasta referenced this in commit aaec072d05 on Jun 29, 2021
  26. PastaPastaPasta referenced this in commit e4e943b007 on Jul 1, 2021
  27. PastaPastaPasta referenced this in commit 0fa5479a5c on Jul 1, 2021
  28. PastaPastaPasta referenced this in commit b5141f33cd on Jul 14, 2021
  29. PastaPastaPasta referenced this in commit 693f054f19 on Jul 14, 2021
  30. DrahtBot locked this on Feb 15, 2022

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-14 21:14 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me