Skip to content

Commit

Permalink
buildkit-agents: don't use mkdir -p -m
Browse files Browse the repository at this point in the history
As `cfg.dataDir` will be the `home` of the Buildkite Agent user, it is
guaranted to exist so we don't need to use the `-p` flag.
  • Loading branch information
Enzime committed Nov 7, 2024
1 parent 3b738c7 commit 7960894
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/services/buildkite-agents.nix
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ in
tagStr = lib.concatStringsSep "," (lib.mapAttrsToList (name: value: "${name}=${value}") cfg.tags);
in
optionalString (cfg.privateSshKeyPath != null) ''
mkdir -m 0700 -p "${sshDir}"
mkdir -m 0700 "${sshDir}"
install -m600 "${toString cfg.privateSshKeyPath}" "${sshDir}/id_rsa"
'' + ''
cat > "${cfg.dataDir}/buildkite-agent.cfg" <<EOF
Expand Down

0 comments on commit 7960894

Please sign in to comment.