aboutsummaryrefslogtreecommitdiff
path: root/scripts/init-navi.sh
blob: 196d689cd69d1229178aa5971c42afba036afcf1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env bash

if ! command -v navi &> /dev/null; then
    echo 'navi is not installed. Failed.'
    exit 1
fi

cheats_path="$(navi info cheats-path)/personal"

if [ ! -d "$cheats_path" ]; then
    git clone https://git.gxlin.org/navi-cheats "$cheats_path"
fi

cd "$cheats_path" && git pull --rebase