fixed quoting issue for hiding hidden files.

This commit is contained in:
2024-07-03 11:45:41 -04:00
parent 967245355a
commit 21d36d0679
4 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -11,7 +11,7 @@
# check for "-l" and "-h" in command prompt
followLinks="-H"
checkHidden="-not -path '*/.*/.git'"
checkHidden="*/.*/.git"
while getopts "lh" option; do
case $option in
l)
@@ -48,5 +48,5 @@ function process_git_fetch () {
# and call process_git_fetch on each location that was found.
# we then work on the folder that contained the ".git" folder.
find "$followLinks" "$@" -type d -name ".git" $checkHidden | sort | while read -r file; do process_git_fetch "$file"; done
find "$followLinks" "$@" -type d -name ".git" -not -path "$checkHidden" | sort | while read -r file; do process_git_fetch "$file"; done
+2 -2
View File
@@ -11,7 +11,7 @@
# check for "-l" and "-h" in command prompt
followLinks="-H"
checkHidden="-not -path '*/.*/.git'"
checkHidden="*/.*/.git"
while getopts "lh" option; do
case $option in
l)
@@ -48,5 +48,5 @@ function process_git_list () {
# and call process_git_list on each location that was found.
# we then work on the folder that contained the ".git" folder.
find "$followLinks" "$@" -type d -name ".git" $checkHidden | sort | while read -r file; do process_git_list "$file"; done
find "$followLinks" "$@" -type d -name ".git" -not -path "$checkHidden" | sort | while read -r file; do process_git_list "$file"; done
+2 -2
View File
@@ -11,7 +11,7 @@
# check for "-l" and "-h" in command prompt
followLinks="-H"
checkHidden="-not -path '*/.*/.git'"
checkHidden="*/.*/.git"
while getopts "lh" option; do
case $option in
l)
@@ -48,5 +48,5 @@ function process_git_pull () {
# and call process_git_pull on each location that was found.
# we then work on the folder that contained the ".git" folder.
find "$followLinks" "$@" -type d -name ".git" $checkHidden | sort | while read -r file; do process_git_pull "$file"; done
find "$followLinks" "$@" -type d -name ".git" -not -path "$checkHidden" | sort | while read -r file; do process_git_pull "$file"; done
+2 -2
View File
@@ -11,7 +11,7 @@
# check for "-l" and "-h" in command prompt
followLinks="-H"
checkHidden="-not -path '*/.*/.git'"
checkHidden="*/.*/.git"
while getopts "lh" option; do
case $option in
l)
@@ -104,5 +104,5 @@ function process_git_status () {
# and call process_git_list on each location that was found.
# we then work on the folder that contained the ".git" folder.
find "$followLinks" "$@" -type d -name ".git" $checkHidden | sort | while read -r file; do process_git_status "$file"; done
find "$followLinks" "$@" -type d -name ".git" -not -path "$checkHidden" | sort | while read -r file; do process_git_status "$file"; done