From 6cdac84e2e88f4620b71e68042233455ec695298 Mon Sep 17 00:00:00 2001 From: hamitozdemir <12991847+hamitozdemir@users.noreply.github.com> Date: Sun, 12 Jan 2025 16:55:10 +0300 Subject: [PATCH 1/2] Fix missing an argument on -w (#752) --- screenfetch-dev | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/screenfetch-dev b/screenfetch-dev index d95f9ade..31a0d94b 100755 --- a/screenfetch-dev +++ b/screenfetch-dev @@ -489,7 +489,7 @@ if ! command -v "${AWK}" > /dev/null; then fi # Parse the rest of the flags (some of these functions require awk) -while getopts ":hsu:evVEnLNtlS:A:D:o:c:d:pa:w:C:" flags; do +while getopts ":hsu:evVEnwLNtlS:A:D:o:c:d:pa:C:" flags; do case $flags in h) displayHelp; exit 0 ;; s) screenshot='1' ;; From 5ea4331e2e92e6b16f108b28d9f5fea253cff055 Mon Sep 17 00:00:00 2001 From: hamitozdemir <12991847+hamitozdemir@users.noreply.github.com> Date: Sun, 12 Jan 2025 16:58:00 +0300 Subject: [PATCH 2/2] Actually fix it with reason in getopts : means it requires an argument, so removing it fixes it --- screenfetch-dev | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/screenfetch-dev b/screenfetch-dev index 31a0d94b..2fafa153 100755 --- a/screenfetch-dev +++ b/screenfetch-dev @@ -489,7 +489,7 @@ if ! command -v "${AWK}" > /dev/null; then fi # Parse the rest of the flags (some of these functions require awk) -while getopts ":hsu:evVEnwLNtlS:A:D:o:c:d:pa:C:" flags; do +while getopts ":hsu:evVEnLNtlS:A:D:o:c:d:pa:wC:" flags; do case $flags in h) displayHelp; exit 0 ;; s) screenshot='1' ;;