~hedy/dotfiles

ref: 08a9d672a8b40f85085645211ce5596246c2b1ec dotfiles/dotscripts/install/yadm -rwxr-xr-x 529 bytes
08a9d672hedy Scripts: Add yadm install/upgrade script 3 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