diff options
Diffstat (limited to 'bash/fake-symlinks.sh')
-rw-r--r-- | bash/fake-symlinks.sh | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/bash/fake-symlinks.sh b/bash/fake-symlinks.sh index 939f519..cc83aa6 100644 --- a/bash/fake-symlinks.sh +++ b/bash/fake-symlinks.sh @@ -1,26 +1,28 @@ #!/usr/bin/env bash -if [[ -n "$GITHUB_TOKEN" ]]; then - envsubst < "$DOTFILES/git/gitconfig.ini" > ~/.gitconfig +if [[ -n "${GITHUB_TOKEN}" ]]; then + envsubst < "${DOTFILES}/git/gitconfig.ini" > ~/.gitconfig fi SRHT_REPOS=(website cement dotfiles) -SRHT_REPOS_PATH="$HOME/dev/libre" +SRHT_REPOS_PATH="${HOME}/dev/libre" for repo in "${SRHT_REPOS[@]}"; do - REPO="$repo" envsubst < "$DOTFILES/templates/sr-ht-build.yaml" > "$SRHT_REPOS_PATH/$repo/.build.yml" - if [[ "$repo" != "dotfiles" ]]; then - cp "$DOTFILES/utils.nix" "$SRHT_REPOS_PATH/$repo/utils.nix" + REPO="${repo}" envsubst < "${DOTFILES}/templates/sr-ht-build.yaml" > "${SRHT_REPOS_PATH}/${repo}/.build.yml" + if [[ "${repo}" != "dotfiles" ]]; then + cp "${DOTFILES}/utils.nix" "${SRHT_REPOS_PATH}/${repo}/utils.nix" + mkdir -p "${SRHT_REPOS_PATH}/${repo}/docs" + cp "${DOTFILES}/docs/README.css" "${SRHT_REPOS_PATH}/${repo}/docs/README.css" fi - if [[ "$repo" != "website" ]]; then - REPO="$repo" envsubst < "$DOTFILES/templates/env.sh" > "$SRHT_REPOS_PATH/$repo/env.sh" + if [[ "${repo}" != "website" ]]; then + REPO="${repo}" envsubst < "${DOTFILES}/templates/env.sh" > "${SRHT_REPOS_PATH}/${repo}/env.sh" fi done mkdir -p ~/.tmuxinator -for template in "$DOTFILES"/tmux/projects/*; do - cp "$template" "$HOME/.tmuxinator/$(basename "$template")" +for template in "${DOTFILES}"/tmux/projects/*; do + cp "${template}" "${HOME}/.tmuxinator/$(basename "$template")" done # DHALL_BUILD_REPOS=(website) |