aboutsummaryrefslogtreecommitdiff
path: root/bash/fake-symlinks.sh
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2019-01-03 06:12:39 -0200
committerEuAndreh <eu@euandre.org>2019-01-03 06:42:41 -0200
commitb679e7d91f7af2d97bead966a17b715cdb020b1a (patch)
tree71926893088a93513971d950d5a19b012722fedf /bash/fake-symlinks.sh
parentAdd custom nu gitconfig options in nugitconfig.ini file. (diff)
downloaddotfiles-b679e7d91f7af2d97bead966a17b715cdb020b1a.tar.gz
dotfiles-b679e7d91f7af2d97bead966a17b715cdb020b1a.tar.xz
Fix shellcheck ofsenses on bash scripts.
Diffstat (limited to '')
-rw-r--r--bash/fake-symlinks.sh26
1 files changed, 20 insertions, 6 deletions
diff --git a/bash/fake-symlinks.sh b/bash/fake-symlinks.sh
index 336f0c5..3927b0c 100644
--- a/bash/fake-symlinks.sh
+++ b/bash/fake-symlinks.sh
@@ -1,19 +1,33 @@
#!/usr/bin/env bash
if [[ -n "$GITHUB_TOKEN" ]]; then
- cat $DOTFILES/git/gitconfig.ini | envsubst > ~/.gitconfig
+ envsubst < "$DOTFILES/git/gitconfig.ini" > ~/.gitconfig
fi
-SRHT_REPOS=("website" "mentat" "cement" "pouchdb-materialized-view" "pires" "superlogin" "superlogin-client")
+SRHT_REPOS=(website mentat cement pouchdb-materialized-view pires superlogin superlogin-client)
SRHT_REPOS_PATH="$HOME/dev/libre"
-for repo in ${SRHT_REPOS[@]}; do
- cat $DOTFILES/templates/sr-ht-build.yaml | REPO="$repo" envsubst > "$SRHT_REPOS_PATH/$repo/.build.yml"
+for repo in "${SRHT_REPOS[@]}"; do
+ REPO="$repo" envsubst < "$DOTFILES/templates/sr-ht-build.yaml" > "$SRHT_REPOS_PATH/$repo/.build.yml"
done
-for repo in ${SRHT_REPOS[@]}; do
+for repo in "${SRHT_REPOS[@]}"; do
if [[ "$repo" != "website" ]]; then
- cat "$DOTFILES/templates/env.sh" | REPO="$repo" envsubst > "$SRHT_REPOS_PATH/$repo/env.sh"
+ REPO="$repo" envsubst < "$DOTFILES/templates/env.sh" > "$SRHT_REPOS_PATH/$repo/env.sh"
fi
done
+
+mkdir -p ~/.tmuxinator
+
+TMUXINATOR_TEMPLATES=(annex pires songbooks sosps)
+
+for template in "${TMUXINATOR_TEMPLATES[@]}"; do
+ cp "$DOTFILES/tmux/projects/$template.yml" "$HOME/.tmuxinator/$template.yml"
+done
+
+# DHALL_BUILD_REPOS=(website)
+
+# for repo in "${DHALL_BUILD_REPOS[@]}"; do
+# dhall 2> /dev/null <<< "./sr-ht-build.dhall \"$repo\"" | dhall-to-json --pretty > "$SRHT_REPOS_PATH/$repo/.build.yml"
+# done