Handle undefined previous version when installing.
$OptUpdate is undefined when not upgrading, so don't prepare an upgrade notice to avoid calling an undefined variable. Signed-off-by: Thomas Hochstein <thh@inter.net>
This commit is contained in:
		
							parent
							
								
									1c3adb8de2
								
							
						
					
					
						commit
						da6fc073ee
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -134,7 +134,9 @@ Enjoy!
 | 
			
		|||
-thh <thh\@inter.net>
 | 
			
		||||
INSTALL
 | 
			
		||||
 | 
			
		||||
my $Upgrade = <<UPGRADE;
 | 
			
		||||
my $Upgrade ='';
 | 
			
		||||
if ($OptUpdate) {
 | 
			
		||||
 $Upgrade = <<UPGRADE;
 | 
			
		||||
----------
 | 
			
		||||
Your installation was upgraded from $OptUpdate to $PackageVersion.
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -144,6 +146,7 @@ Don't forget to restart your INN feed so that it can pick up the new version:
 | 
			
		|||
 | 
			
		||||
(or whatever you called your feed).
 | 
			
		||||
UPGRADE
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
##### --------------------------- End of definitions ---------------------------
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue