···77 fi
78 # The argument sometimes contains garbage or variable interpolation.
79 # When that is the case, let’s fall back to the derivation name.
80- if [[ -z "$shareDocName" ]] || echo "$shareDocName" | grep -q '[^a-zA-Z0-9_-+]'; then
81 if [[ -n "${pname-}" ]]; then
82 shareDocName="$pname"
83 else
···77 fi
78 # The argument sometimes contains garbage or variable interpolation.
79 # When that is the case, let’s fall back to the derivation name.
80+ if [[ -z "$shareDocName" ]] || echo "$shareDocName" | grep -q '[^a-zA-Z0-9_+-]'; then
81 if [[ -n "${pname-}" ]]; then
82 shareDocName="$pname"
83 else