~hedy/dotfiles

dotfiles/dotscripts/install/yadm -rwxr-xr-x 529 bytes
29d99131 — hedy Fish: Fix prompt for fish v3.4.1 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env bash

if command -v yadm &> /dev/null; then
    if ! [ -f ~/local/src/yadm/yadm ]; then
        echo "Attempted to upgrade yadm, but it was not installed (as a git clone) at ~/local/src/yadm/."
        exit
    fi
    cd ~/local/src/yadm
    git pull
    cd - > /dev/null
    echo "Upgraded yadm!"
    echo "> yadm --version"
    yadm --version
    exit
fi

mkdir -p ~/local/bin
mkdir ~/local/src

git clone https://github.com/TheLocehiliosan/yadm.git ~/local/src/yadm
ln -s ~/local/src/yadm/yadm ~/local/bin/yadm