♻️ Refactored ADDED, MODIFIED, DELETED fields
This commit is contained in:
parent
7512f73881
commit
50b9b5cf67
1 changed files with 2 additions and 2 deletions
|
|
@ -253,9 +253,9 @@ else
|
||||||
# Grabs all new files
|
# Grabs all new files
|
||||||
newfiles=$(git status --short | grep '??' | awk '{print $2}' | tr '\n' ' ')
|
newfiles=$(git status --short | grep '??' | awk '{print $2}' | tr '\n' ' ')
|
||||||
# Grabs all modified files
|
# Grabs all modified files
|
||||||
modified=$(git status --short | grep M | awk '{print $2}' | tr '\n' ' ')
|
modified=$(git status | grep modified | awk '{print $2}' | tr '\n' ' ')
|
||||||
# Grabs all deleted files
|
# Grabs all deleted files
|
||||||
deleted=$(git status --short | grep D | awk '{print $2}' | tr '\n' ' ')
|
deleted=$(git status | grep deleted | awk '{print $2}' | tr '\n' ' ')
|
||||||
|
|
||||||
# getopts loop for flag -r that reverts back changes in git repo
|
# getopts loop for flag -r that reverts back changes in git repo
|
||||||
while getopts "r" opt; do
|
while getopts "r" opt; do
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue