-debug + fix
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
		
					parent
					
						
							
								643c618a9f
							
						
					
				
			
			
				commit
				
					
						ae4ff8b497
					
				
			
		
					 1 changed files with 5 additions and 1 deletions
				
			
		|  | @ -21,6 +21,10 @@ | ||||||
| # Manage packages with Pacman (mostly archlinux) | # Manage packages with Pacman (mostly archlinux) | ||||||
| # | # | ||||||
| 
 | 
 | ||||||
|  | # Debug | ||||||
|  | # exec >&2 | ||||||
|  | # set -x | ||||||
|  | 
 | ||||||
| pacopts="--noconfirm --noprogressbar" | pacopts="--noconfirm --noprogressbar" | ||||||
| 
 | 
 | ||||||
| if [ -f "$__object/parameter/name" ]; then | if [ -f "$__object/parameter/name" ]; then | ||||||
|  | @ -30,10 +34,10 @@ else | ||||||
| fi | fi | ||||||
| 
 | 
 | ||||||
| state="$(cat "$__object/parameter/state")" | state="$(cat "$__object/parameter/state")" | ||||||
|  | pkg_version="$(cat "$__object/explorer/pkg_version")" | ||||||
| 
 | 
 | ||||||
| case "$state" in | case "$state" in | ||||||
|    installed) |    installed) | ||||||
|       pkg_version="$(cat "$__object/explorer/pkg_version")" |  | ||||||
| 
 | 
 | ||||||
|       # Empty? Not installed. |       # Empty? Not installed. | ||||||
|       if [ -z "$pkg_version" ]; then |       if [ -z "$pkg_version" ]; then | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue