[pacman-dev] makepkg: emptydirs: fix typo

Message ID 20201015105626.3964-1-michael.straubej@gmail.com
State Accepted, archived
Headers show
Series [pacman-dev] makepkg: emptydirs: fix typo | expand

Commit Message

Michael Straube Oct. 15, 2020, 10:56 a.m. UTC
Fix typo in a comment in tidy_emptydirs().

Signed-off-by: Michael Straube <michael.straubej@gmail.com>
---
 scripts/libmakepkg/tidy/emptydirs.sh.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Allan McRae Oct. 21, 2020, 1:19 a.m. UTC | #1
On 15/10/20 8:56 pm, Michael Straube wrote:
> Fix typo in a comment in tidy_emptydirs().
> 
> Signed-off-by: Michael Straube <michael.straubej@gmail.com>
> ---

Thanks.

>  scripts/libmakepkg/tidy/emptydirs.sh.in | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/scripts/libmakepkg/tidy/emptydirs.sh.in b/scripts/libmakepkg/tidy/emptydirs.sh.in
> index 902ea317..ffa0276f 100644
> --- a/scripts/libmakepkg/tidy/emptydirs.sh.in
> +++ b/scripts/libmakepkg/tidy/emptydirs.sh.in
> @@ -33,7 +33,7 @@ tidy_remove+=('tidy_emptydirs')
>  tidy_emptydirs() {
>  	if check_option "emptydirs" "n"; then
>  		msg2 "$(gettext "Removing empty directories...")"
> -		# we are unable to use '-empty' as it is non-POSIX and not support by all find variants
> +		# we are unable to use '-empty' as it is non-POSIX and not supported by all find variants
>  		find . -depth -type d -exec rmdir '{}' \; 2>/dev/null
>  	fi
>  }
>

Patch

diff --git a/scripts/libmakepkg/tidy/emptydirs.sh.in b/scripts/libmakepkg/tidy/emptydirs.sh.in
index 902ea317..ffa0276f 100644
--- a/scripts/libmakepkg/tidy/emptydirs.sh.in
+++ b/scripts/libmakepkg/tidy/emptydirs.sh.in
@@ -33,7 +33,7 @@  tidy_remove+=('tidy_emptydirs')
 tidy_emptydirs() {
 	if check_option "emptydirs" "n"; then
 		msg2 "$(gettext "Removing empty directories...")"
-		# we are unable to use '-empty' as it is non-POSIX and not support by all find variants
+		# we are unable to use '-empty' as it is non-POSIX and not supported by all find variants
 		find . -depth -type d -exec rmdir '{}' \; 2>/dev/null
 	fi
 }