Bash Script Repo Tools
This repository contains the master.sh
script, designed to simplify the execution of other scripts stored in a GitHub repository. The master.sh
script automatically fetches a list of available scripts, allows you to select and run them, and handles dependencies and cleanup. This guide explains how to use the master.sh
script, its key features, and how to contribute.
The goal of the repo is to make is as simple as possible to run scripts that are stored in a GitHub Repo.
** For ease of access, the link https://scripts.pitterpatter.io/master.sh
can be used to get master.sh
**
wget https://raw.githubusercontent.com/pitterpatter22/Script-Repo/main/master.sh -O master.sh && bash master.sh
OR
wget https://scripts.pitterpatter.io/master.sh && bash master.sh
Select the script called Testing/test.sh
(Shown in the pictures below)
To use the master.sh
script, run the following command:
wget https://raw.githubusercontent.com/pitterpatter22/Script-Repo/main/master.sh -O master.sh && bash master.sh
OR
wget https://scripts.pitterpatter.io/master.sh && bash master.sh
There is also a master-gitlab.sh
file showing a version of the script that works with a self hosted version of gitlab.
If you want to see more detailed output during execution, use the -v flag:
bash master.sh -v
-v
flag to enable detailed logging during script execution.The master.sh
script relies on the following tools:
sudo
: Ensures elevated permissions for installing packages and running scripts.curl
: Used to fetch the list of scripts and download individual scripts.jq
: Parses JSON responses from GitHub API.
If any of these tools are not installed, the script will attempt to install them automatically.The script also uses task_formatter.sh
, which can be found at the TaskFormatter Repo, to format the output of the master script in a better looking way.
The script includes robust error handling mechanisms:
After running the selected script(s), the master.sh script performs the following cleanup actions:
master.sh
script itself and the task_formatter.sh
script used for output formatting.We welcome contributions to this repository! To contribute:
To add a new script to the repository:
chmod +x script_name.sh
).If you encounter any issues with the master.sh
script, please open an issue in this repository, providing details about the problem and any relevant logs or error messages.
This repository is licensed under the MIT License. See the LICENSE file for more details.