Skip to content

Commit efbe6a3

Browse files
authored
Fix broken git-name param during home-manager template init (#10)
Breaks when `id -F` has a space in the name. See: ![image](https://github.com/user-attachments/assets/06430030-05dd-41aa-afe7-019d1d8d9c3c) The PR removes the single-quotes encompassing the output of `id -F` to prevent the shell from treating everything after the space as next argument.
1 parent 97e2978 commit efbe6a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ echo "\n# Setting up home-manager & direnv"
1616
nix --accept-flake-config run github:juspay/omnix -- \
1717
init github:juspay/nixos-unified-template#home -o ~/nixconfig \
1818
--non-interactive \
19-
--params '{"username":"'$(id -un)'", "git-name":"'$(id -F)'", "git-email":"'$(id -un)'@juspay.in"}'
19+
--params '{"username":"'$(id -un)'", "git-name":"$(id -F)", "git-email":"'$(id -un)'@juspay.in"}'
2020

2121
cd ~/nixconfig && nix run
2222

0 commit comments

Comments
 (0)