Update hooks to use DOTMIX_* instead of DTTR_* env vars

master
Ian Mancini 3 years ago
parent ac2b4d172c
commit cc42acfae6

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
echo "Linking dotfiles dir" echo "Linking dotfiles dir"
ln -s "$DTTR_OUT" "$HOME/.dotfiles" ln -s "$DOTMIX_OUT" "$HOME/.dotfiles"
echo "Linking individual dotfiles" echo "Linking individual dotfiles"
cd "$HOME/.dotfiles" cd "$HOME/.dotfiles"

@ -3,7 +3,7 @@
set -euo pipefail set -euo pipefail
OLDIR="$PWD" OLDIR="$PWD"
cd "$DTTR_OUT" cd "$DOTMIX_OUT"
if [ -L "$HOME/.Xresources" ]; then if [ -L "$HOME/.Xresources" ]; then
unlink "$HOME/.Xresources" unlink "$HOME/.Xresources"
@ -15,6 +15,7 @@ for dir in $(find . -type d); do
c=$(echo "$_path" | wc -m) c=$(echo "$_path" | wc -m)
if [ $c -gt 1 ]; then if [ $c -gt 1 ]; then
abspath="$HOME/$_path" abspath="$HOME/$_path"
echo "$abspath"
[ ! -d "$abspath" ] && mkdir -p "$abspath" [ ! -d "$abspath" ] && mkdir -p "$abspath"
fi fi
done done

Loading…
Cancel
Save