3
0
Fork 0
forked from mirrors/nixpkgs

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