Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Instantly share code, notes, and snippets.

@src4026
src4026 / pull.sh
Last active January 2, 2024 15:45
A script to automate fetching folders for testing Map PRs for Minetetst Capture the Flag by rubenwardy.
#!/bin/bash
ctf_folder="capturetheflag"
temp_folder=$(mktemp -d)
usage() {
echo "Usage: $0 [ -b BRANCH ] [ -n CTF_FOLDER_NAME ] <path/to/Minetest/folder> <fork repository>"
echo "Options:"
echo " -b BRANCH: The branch used for the PR (default: origin)"
echo " -n CTF_FOLDER_NAME: Name of your CTF folder (default: capturetheflag)"