Script Repo

Bash Script Repo Tools

View the Project on GitHub pitterpatter22/Script-Repo

Master Script Repository

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 **

Table of Contents

Demo

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)

Script Selection Picture Script Output
Script Output Picture Script Output
Script output Formatted View Warp Block


Usage

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.

Running with Verbose Output

If you want to see more detailed output during execution, use the -v flag:

bash master.sh -v

Selecting and Running Scripts

  1. Fetch List of Scripts: The script automatically fetches the list of available scripts from this repository.
  2. Select a Script: You will be prompted to select a script to run from the list of available scripts.
  3. Run the Script: The selected script is downloaded, executed, and then cleaned up after execution.

Features

Dependencies

The master.sh script relies on the following tools:

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.

Error Handling

The script includes robust error handling mechanisms:

Cleanup

After running the selected script(s), the master.sh script performs the following cleanup actions:

Contributing

We welcome contributions to this repository! To contribute:

Adding New Scripts

To add a new script to the repository:

  1. Add your script to the repository, ensuring it follows the naming convention (.sh extension).
  2. Ensure the script is executable (chmod +x script_name.sh).
  3. Submit a pull request with your new script.

Reporting Issues

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.

License

This repository is licensed under the MIT License. See the LICENSE file for more details.