Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/abdelhamiderrahmouni/zipper-bash
a bash script that can be used to streamline the zipping of projects
https://github.com/abdelhamiderrahmouni/zipper-bash
Last synced: 6 days ago
JSON representation
a bash script that can be used to streamline the zipping of projects
- Host: GitHub
- URL: https://github.com/abdelhamiderrahmouni/zipper-bash
- Owner: abdelhamiderrahmouni
- Created: 2024-02-09T00:57:48.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-02-09T01:05:52.000Z (11 months ago)
- Last Synced: 2024-11-24T17:05:03.388Z (about 1 month ago)
- Language: Shell
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Zipper
a bash script that can be used to streamline the zipping of projects## Overview
This script automates the process of creating a zip archive of a project directory, with the ability to exclude specified subdirectories. The script takes the project name as an argument and creates a snake case zip file name.## Usage
./zipper.sh project_name [-x exclude_paths]
**Arguments**
project_name: The name of the project directory to be zipped.
[-x exclude_paths]: (Optional) A list of paths relative to the project directory that should be excluded from the zip file. Each path should be separated by a space.
**Example**
./zipper.sh myProject -x node_modules storage public/storage
This command will create a zip file named my_project.zip containing the contents of the myProject directory, excluding the node_modules, storage, and public/storage subdirectories.## Notes
you can make the script executable and alias it to re-use it any where in your system.
The -x flag must be used if you want to exclude any paths. If no -x flag is provided, all paths will be included in the zip file.
Paths are relative to the project directory and should not start with a slash (/).
The script does not check if the paths exist; it will attempt to exclude them as specified.