diff options
author | EuAndreh <eu@euandre.org> | 2019-06-02 16:11:12 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2019-06-02 16:16:30 -0300 |
commit | 316939aa215181b1d22b69e94241eef757add98d (patch) | |
tree | 4ce5b7c31d365e7fe068a24dc89dd3ce8028b447 /bash | |
parent | TODOs.org (diff) | |
download | dotfiles-316939aa215181b1d22b69e94241eef757add98d.tar.gz dotfiles-316939aa215181b1d22b69e94241eef757add98d.tar.xz |
Rename public/static/README.css -> docs/README.css
Adapt utils.nix to point to it instead.
Include README.css in fake-symlinks.sh.
BONUS:
Use "${VARIABLE}" instead of "$VARIABLE" in fake-symlinks.sh.
Diffstat (limited to '')
-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) |