Skip to content

Commit

Permalink
Merge pull request #29 from dshoreman/flagfix
Browse files Browse the repository at this point in the history
Fix getopt parameters
  • Loading branch information
savely-krasovsky authored Aug 5, 2024
2 parents d4a63fa + d36033b commit 011725a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions waybar-updates
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ packages_limit=10
devel=false
notify=false

PARSED_ARGUMENTS=$(getopt -o "hi:c:l:d::" --long "help,interval,cycles,packages-limit,devel::" --name "waybar-updates" -- "$@")
PARSED_ARGUMENTS=$(getopt -o "hi:c:l:dn" --long "help,interval:,cycles:,packages-limit:,devel,notify" --name "waybar-updates" -- "$@")
eval set -- "$PARSED_ARGUMENTS"
while :; do
case "$1" in
Expand All @@ -34,11 +34,11 @@ while :; do
;;
-d | --devel)
devel=true
shift 2
shift
;;
-n | --notify)
notify=true
shift 2
shift
;;
-h | --help) usage ;;
--)
Expand Down

0 comments on commit 011725a

Please sign in to comment.