Skip to content

Instantly share code, notes, and snippets.

View src4026's full-sized avatar
:atom:
A cosmosphile by nature; learner forever.

s20 src4026

:atom:
A cosmosphile by nature; learner forever.
View GitHub Profile
@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)"