https://github.com/iatenine/update-class-repo
Simple BASH script to reduce updating files from a repo and copying all relevant files into a working directory into a single command that can be set up as an automated task
https://github.com/iatenine/update-class-repo
bash-script git unix-shell
Last synced: about 2 months ago
JSON representation
Simple BASH script to reduce updating files from a repo and copying all relevant files into a working directory into a single command that can be set up as an automated task
- Host: GitHub
- URL: https://github.com/iatenine/update-class-repo
- Owner: iatenine
- License: unlicense
- Created: 2021-07-30T17:17:41.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-08-17T03:41:49.000Z (almost 5 years ago)
- Last Synced: 2025-04-09T10:28:19.726Z (about 1 year ago)
- Topics: bash-script, git, unix-shell
- Language: Shell
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# update-class-repo
## Description
A simple bash script designed to automate the process of pulling the class repo into a "pristine" directory and copying its contents
into a non-pristine "working" directory
## How to Use
1) Replace the values of PRISTINEDIR and WORKINGDIR at the top of the file to the absolute paths of your pristine and working directory
respectively
2) Ensure the script has executable privleges ```chmod +x update-class-repo.sh``` in Linux/Mac
3) Run the script whenever you need to update the class repo, it will take care of copying all new files into the working directory
## Options
If you'd prefer to overwrite changes in the working directory replace
```-n``` with ```-f```
in
```cp -r -n $PRISTINEDIR $WORKINGDIR```