From 378ac7e341295fbc185d31d73ba99ede70116037 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Sat, 21 Oct 2023 08:35:54 +0800 Subject: Add navi init script --- scripts/init-navi.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 scripts/init-navi.sh 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 -- cgit v1.2.3