Skip to content

Commit

Permalink
Update to v1.6.2
Browse files Browse the repository at this point in the history
- Fixed a bug when options parser tries to split unknown long argument (e.g. `--hello` to `--`).
  • Loading branch information
itz-me-zappex authored Oct 2, 2024
1 parent 5804026 commit bc87e64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flux
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ Options and values:
shift 1
;;
--version | -V )
echo "flux 1.6.1
echo "flux 1.6.2
A daemon for X11 designed to automatically limit CPU usage of unfocused windows and run commands on focus and unfocus events.
License: GPL-3.0
Repository: https://github.com/itz-me-zappex/flux
Expand All @@ -394,7 +394,7 @@ There is NO WARRANTY, to the extent permitted by law.
;;
* )
# Regexp means 2+ symbols after hyphen (combined short options)
if [[ "$1" =~ ^-.{2,}$ ]]; then
if [[ "$1" =~ ^-.{2,}$ && ! "$1" =~ ^--.* ]]; then
# Split combined option and add result to array
for (( i = 0; i < ${#1} ; i++ )); do
options+=("-${1:i:1}")
Expand Down

0 comments on commit bc87e64

Please sign in to comment.