diff options
-rwxr-xr-x | scripts/init-navi.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/init-navi.sh b/scripts/init-navi.sh new file mode 100755 index 0000000..196d689 --- /dev/null +++ b/scripts/init-navi.sh @@ -0,0 +1,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 |