Skip to content

Commit

Permalink
Fixed #68 bug with CLI flag precedence over config file
Browse files Browse the repository at this point in the history
  • Loading branch information
oshazard committed Sep 29, 2016
1 parent eb7c037 commit c3f109d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions apacman
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ version="2.7"
# Copyright OS Hazard <[email protected]>
#
# New Features:
# * Fix CLI switch precedence over config file
# * Improved support for virtual packages
# * Improved -U handling
# * Built-in ABS support (improved)
Expand Down Expand Up @@ -1066,6 +1067,9 @@ pacwrap() {
exit 0;
}

# Override defaults
sourceapacmanconf

# Argument parsing
[[ $1 ]] || usage
packageargs=()
Expand Down Expand Up @@ -1124,9 +1128,6 @@ while [[ $1 ]]; do
shift
done

# Override defaults
sourceapacmanconf

# Set tmpfile stuff, clean tmpdir
rm -rf "$tmpdir" &>/dev/null
mkdir -p "$tmpdir"
Expand Down

0 comments on commit c3f109d

Please sign in to comment.