1 2 3 4 5 6 7 8 9 10 11 12
#!/usr/bin/env bash if [[ -n "$GITHUB_TOKEN" ]]; then cat $DOTFILES/git/gitconfig.ini | envsubst > ~/.gitconfig fi repos=("org.euandreh.misc" "org.euandreh.http") for repo in ${repos[@]}; do cp "$DOTFILES/git/gitlab-ci.yml" "$DOTFILES/../$repo/.gitlab-ci.yml" cp "$DOTFILES/git/default.nix" "$DOTFILES/../$repo/default.nix" done