From: davidpaulos Date: Wed, 11 Apr 2018 17:00:59 +0000 (+0100) Subject: fixed install X-Git-Url: https://git.packet-gain.de/?a=commitdiff_plain;h=c05730968a3069a72b2ec0d763ca0cfaa19c9ca3;p=xbpsui.git fixed install --- diff --git a/XbpsUI.sh b/XbpsUI.sh index 10b95fe..29e4893 100644 --- a/XbpsUI.sh +++ b/XbpsUI.sh @@ -21,25 +21,16 @@ function install #margin for margins #inline info to display info inline #preview to show the package description - #header and prompt to give info for people to know how to do stuff - pkg="$( xbps-query -Rs "" | grep -v "*" | sort -k1,1 -u | - fzf -i \ - --multi \ - --exact \ - --no-sort \ - --select-1 \ - --query="$argument_input" \ - --cycle \ - --reverse \ - --margin="4%,1%,1%,2%" \ + #header and prompt to give info for people to know how to do stuff + pkg="$( xbps-query -Rs "" | sort -u | fzf -i \ + --multi --exact --no-sort --select-1 --query="$argument_input" \ + --cycle --reverse --margin="4%,1%,1%,2%" \ --inline-info \ --preview 'xbps-query -R {1} '\ --preview-window=right:55%:wrap \ --header="TAB key to (un)select. ENTER to install. ESC to quit." \ - --prompt="filter> " | - awk '{print $1}' + --prompt="filter> " | awk '{print $2}' )" - pkg="$( echo "$pkg" | paste -sd " " )" if [[ -n "$pkg" ]] then