Open
Conversation
xindizhang
approved these changes
Nov 13, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
UofT-DSI | GIT- Assignment 1
What changes are you trying to make? (e.g. Adding or removing code, refactoring existing code, adding reports)
Refactoring the existing assigments.sh script to perform all tasks needed and addig it to the repository.
What did you learn from the changes you have made?
How to modify an existing script. How to create directories, move files, and remove files with no absolute paths.
And how to manage versions changes on github.
Was there another approach you were thinking about making? If so, what approach(es) were you thinking of?
I considered adding verifications to the script to let the user decide how to proceed and also to input the name of the project to match with the respective client project instead of just creating a "newproject" directory every time.
Were there any challenges? If so, what issue(s) did you face? How did you overcome it?
The first time I did it I had an extra "rawdata" folder inside data that messed up the script once I ran it in another folder.
I had to re track the script steps and ran line by line to catch the error and update it on the script.
How were these changes tested?
I created another folder, copied the assigment.sh file and ran it inside that folder.
Then I proceeded to check the inventory file to verify that all files existed in the corresponding folders.
And lastly, I checked that there was no IP files on the folders.
Checklist