Skip to content

Commit

Permalink
Restyled by shfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits committed May 14, 2021
1 parent cb50289 commit cdc9fcb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions downgrade
Original file line number Diff line number Diff line change
Expand Up @@ -428,12 +428,12 @@ cli() {
declare -a system_args

# get system and command-line arguments and parse everything
IFS=' ' read -r -a system_args <<< "$(read_downgrade_conf)"
IFS=' ' read -r -a system_args <<<"$(read_downgrade_conf)"
parse_options "${system_args[@]}" "$@"

# make arrays unique
IFS=' ' read -r -a terms <<< "$(printf "%s\n" "${terms[@]}" | uniq | tr '\n' ' ')"
IFS=' ' read -r -a PACMAN_CACHE <<< "$(printf "%s\n" "${PACMAN_CACHE[@]}" | uniq | tr '\n' ' ')"
IFS=' ' read -r -a terms <<<"$(printf "%s\n" "${terms[@]}" | uniq | tr '\n' ' ')"
IFS=' ' read -r -a PACMAN_CACHE <<<"$(printf "%s\n" "${PACMAN_CACHE[@]}" | uniq | tr '\n' ' ')"

# proceed with rest of workflow
main "${terms[@]}"
Expand Down

0 comments on commit cdc9fcb

Please sign in to comment.