Skip to content

Exported variable "could be local" #214

@jakub-bochenski

Description

@jakub-bochenski
#!/bin/bash

main() {
	ROOT="$(dirname -- "$(readlink -f -- "${BASH_SOURCE[0]}")")/.."
	export ROOT
}

while you can technically do that, I don't think it's useful to declare exported variables as local

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions