git.iko.soy/typeable/nixpkgs
on master help sign in
fluxcd: fix update script unbound variable
commit4263a2116396f8c773963078f61c57ecaeb84677 authorsuperherointj <5861043+superherointj@users.noreply.github.com> dateWed 4 May 2022, 04:43 (5 years ago) parente055969
1 file changed+1−1
pkgs/applications/networking/cluster/fluxcd/update.sh+1−1
pkgs/applications/networking/cluster/fluxcd/update.sh+1−1
@@ -35,7 +35,7 @@ if [ ! "$OLD_VERSION" = "$LATEST_VERSION" ]; then
3535 fi
3636
3737 # `git` flag here is to be used by local maintainers to speed up the bump process
38− if [ "$1" = "git" ]; then
38+ if [ $# -eq 1 ] && [ "$1" = "git" ]; then
3939 git switch -c "package-fluxcd-${LATEST_VERSION}"
4040 git add "$FLUXCD_PATH"/default.nix
4141 git commit -m "fluxcd: ${OLD_VERSION} -> ${LATEST_VERSION}"