Replace 'return' with 'exit'
This commit is contained in:
		
							parent
							
								
									dd96391dc6
								
							
						
					
					
						commit
						f0bf0e1c4e
					
				| @ -6,7 +6,7 @@ read answer | |||||||
| if [ "$answer" == "y" ]; then | if [ "$answer" == "y" ]; then | ||||||
| 	echo "~> OK. Be patient now, that could take some time..." | 	echo "~> OK. Be patient now, that could take some time..." | ||||||
| 	dd if=/dev/zero of=$blockdevice status=progress | 	dd if=/dev/zero of=$blockdevice status=progress | ||||||
| 	return $? | 	exit $? | ||||||
| else | else | ||||||
| 	exit 1 | 	exit 1 | ||||||
| fi | fi | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user