Files
m2612/bash/fetch-with-restore-shelve.sh
2026-07-15 07:29:14 +03:00

15 lines
516 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
#
# Downloading mods to local folder
# @see https://juraj-hrivnak.github.io/Pakku/pakku-fetch.html
# Следует использовать после команды sync,
# которая синхронизирует локальные моды с регистром pakku
#
set -eu pipefail
pakku() { pakku-mc "$@"; }
SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &> /dev/null && pwd)
REPO_ROOT="${SCRIPT_DIR}/.."
cd "${REPO_ROOT}" || exit 1
pakku fetch --shelve && mv .pakku/shelf/* mods/