Kieran's opinionated (and probably slightly dumb) nix config

chore: fix ghrpc

dunkirk.sh 8eff85a9 9d0512f2

verified
+3 -3
+3 -3
modules/home/system/shell.nix
··· 675 675 676 676 # Create on GitHub via gh CLI 677 677 if [[ "$GITHUB" == true ]] && [[ "$SKIP_REMOTE_CREATION" == false ]]; then 678 - gh_args="$GITHUB_USER/$NAME --$VISIBILITY" 679 - [[ -n "$DESCRIPTION" ]] && gh_args="$gh_args --description \"$DESCRIPTION\"" 678 + gh_args=("$GITHUB_USER/$NAME" "--$VISIBILITY") 679 + [[ -n "$DESCRIPTION" ]] && gh_args+=("--description" "$DESCRIPTION") 680 680 681 - if ${pkgs.gh}/bin/gh repo create $gh_args 2>/tmp/gh-error-$$.log; then 681 + if ${pkgs.gh}/bin/gh repo create "''${gh_args[@]}" 2>/tmp/gh-error-$$.log; then 682 682 ${pkgs.gum}/bin/gum style --foreground 35 "✓ GitHub: https://github.com/$GITHUB_USER/$NAME" 683 683 else 684 684 ${pkgs.gum}/bin/gum style --foreground 196 "✗ Failed to create GitHub repository"