httpTwoLevelsUpdater: fix variable default value

This commit is contained in:
José Romildo 2022-09-30 09:59:29 -03:00
parent 0b9c39e819
commit a15e083372
2 changed files with 3 additions and 3 deletions

View File

@ -15,5 +15,5 @@
genericUpdater { genericUpdater {
inherit pname version attrPath ignoredVersions rev-prefix odd-unstable patchlevel-unstable; inherit pname version attrPath ignoredVersions rev-prefix odd-unstable patchlevel-unstable;
versionLister = "${common-updater-scripts}/bin/list-archive-two-levels-versions ${lib.optionalString (url != null) "--url=${url}"}"; versionLister = "${common-updater-scripts}/bin/list-archive-two-levels-versions ${lib.optionalString (url != null) "--url=${lib.escapeShellArg url}"}";
} }

View File

@ -4,7 +4,7 @@
pname="" # package name pname="" # package name
attr_path="" # package attribute path attr_path="" # package attribute path
url="" # directory list url url="" # directory listing url
file="" # file for writing debugging information file="" # file for writing debugging information
while (( $# > 0 )); do while (( $# > 0 )); do
@ -31,7 +31,7 @@ while (( $# > 0 )); do
done done
if [[ -z "$pname" ]]; then if [[ -z "$pname" ]]; then
pname="$UPDATE_NIX_NAME" pname="$UPDATE_NIX_PNAME"
fi fi
if [[ -z "$attr_path" ]]; then if [[ -z "$attr_path" ]]; then