fix(rebuild): the input device is not a TTY
This commit is contained in:
		
							parent
							
								
									82c406ffa3
								
							
						
					
					
						commit
						0d85cf61ae
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		|  | @ -1,8 +1,10 @@ | ||||||
| #!/bin/sh | #!/bin/sh | ||||||
| 
 | 
 | ||||||
|  | set -x | ||||||
|  | 
 | ||||||
| updates_available () { | updates_available () { | ||||||
|     docker pull "$1" |     docker pull "$1" | ||||||
|     if test "$(docker run -it --rm "$1" /bin/sh -c 'apt -qqq update && apt -qq list --upgradable')" != ""; then |     if test "$(docker run --rm "$1" /bin/sh -c 'apt -qqq update && apt -qq list --upgradable')" != ""; then | ||||||
|         return 0 |         return 0 | ||||||
|     else |     else | ||||||
|         return 1 |         return 1 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue