From 4263a2116396f8c773963078f61c57ecaeb84677 Mon Sep 17 00:00:00 2001 From: superherointj <5861043+superherointj@users.noreply.github.com> Date: Wed, 4 May 2022 04:43:44 -0300 Subject: [PATCH] fluxcd: fix update script unbound variable --- pkgs/applications/networking/cluster/fluxcd/update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/applications/networking/cluster/fluxcd/update.sh b/pkgs/applications/networking/cluster/fluxcd/update.sh index 89bfbdc535e0..2d25eee6f347 100755 --- a/pkgs/applications/networking/cluster/fluxcd/update.sh +++ b/pkgs/applications/networking/cluster/fluxcd/update.sh @@ -35,7 +35,7 @@ if [ ! "$OLD_VERSION" = "$LATEST_VERSION" ]; then fi # `git` flag here is to be used by local maintainers to speed up the bump process - if [ "$1" = "git" ]; then + if [ $# -eq 1 ] && [ "$1" = "git" ]; then git switch -c "package-fluxcd-${LATEST_VERSION}" git add "$FLUXCD_PATH"/default.nix git commit -m "fluxcd: ${OLD_VERSION} -> ${LATEST_VERSION}"