Skip to content

Error 'output: unbound variable' while executing 'doctoc.sh' #2455

Description

@jlegido

First of all many thanks to all the people involved on this project for their time, I really appreciate it.

Steps to reproduce

  1. Clone the git project
git clone https://github.com/dedis/cothority
  1. Execute doctoc.sh:
bash cothority/doctoc.sh cothority/README.md 

Expected behaviour

Get an output similar to:

  Created doctoc.sh block in cothority/README.md succesfully

Found behaviour

The output is:

cothority/doctoc.sh: line 96: output: unbound variable

Error message

cothority/doctoc.sh: line 96: output: unbound variable

Workaround

If we comment out the set -u line:

sed -i 's/set -u/#set -u/g' cothority/doctoc.sh 

The script works.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions