forked from CastroFidel/winehelper
		
	check_installed_programs: updated run list
This commit is contained in:
		| @@ -22,7 +22,7 @@ _winehelper_completions() { | ||||
|             return 0 | ||||
|             ;; | ||||
|         run|installed) | ||||
|             local installed=$(grep -h "Exec=env" ~/.local/share/winehelper/*.desktop 2>/dev/null | awk -F'/' '{print $NF}' | awk -F'"' '{print $1}') | ||||
|             local installed=$(ls -1 ~/.local/share/winehelper/ | grep ".desktop" | sed 's/.desktop//') | ||||
|             COMPREPLY=( $(compgen -W "${installed}" -- "${cur}") ) | ||||
|             return 0 | ||||
|             ;; | ||||
|   | ||||
| @@ -101,9 +101,7 @@ _get_list_for_install () { | ||||
|  | ||||
| _get_installed_list () { | ||||
|   installed=( | ||||
|     ${(f)"$(grep -h 'Exec=env' ~/.local/share/winehelper/*.desktop 2>/dev/null | | ||||
|     awk -F'/' '{print $NF}' | | ||||
|     awk -F'"' '{print $1}')"} | ||||
|     ${(f)"$(ls -1 ~/.local/share/winehelper/ | grep ".desktop" | sed 's/.desktop//')"} | ||||
|   ) | ||||
|  | ||||
|   if ((! ${#installed[@]} == 0 )); then | ||||
|   | ||||
		Reference in New Issue
	
	Block a user