Commit 3d7e60be authored by Bruno BELANYI's avatar Bruno BELANYI
Browse files

woodpecker: use upstream naming for cli executable

The intended executable name is supposed to be `woodpecker`, not
`woodpecker-cli`, as pointed out in [1].

[1]: https://github.com/woodpecker-ci/woodpecker/issues/2112
parent 61276c80
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -12,6 +12,6 @@ buildGoModule {

  meta = common.meta // {
    description = "Command line client for the Woodpecker Continuous Integration server";
    mainProgram = "woodpecker-cli";
    mainProgram = "woodpecker";
  };
}
+5 −1
Original line number Diff line number Diff line
@@ -17,7 +17,11 @@ in
  postInstall = ''
    cd $out/bin
    for f in *; do
      if [ "$f" = cli ]; then
        mv -- "$f" "woodpecker"
      else
        mv -- "$f" "woodpecker-$f"
      fi
    done
    cd -
  '';