From 50b9b5cf67c96d590bac3b6e5bee1c75a7f0a317 Mon Sep 17 00:00:00 2001 From: z3rOR0ne Date: Thu, 28 Jul 2022 06:50:02 -0700 Subject: [PATCH] :recycle: Refactored ADDED, MODIFIED, DELETED fields --- scripts/bgit | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/bgit b/scripts/bgit index 49c86e94..d8510b9b 100755 --- a/scripts/bgit +++ b/scripts/bgit @@ -253,9 +253,9 @@ else # Grabs all new files newfiles=$(git status --short | grep '??' | awk '{print $2}' | tr '\n' ' ') # 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 - 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 while getopts "r" opt; do