| 
					
				 | 
			
			
				@@ -7,7 +7,8 @@ result = subprocess.run(['./script1.sh'], shell=False, stdout=subprocess.PIPE, s 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 if result.returncode == 0: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     print("script1.sh 执行成功") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     # 调用script2.sh 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    subprocess.run(['./script2.sh'], shell=False, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    result2 = subprocess.run(['./script2.sh'], shell=False, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    print("script2.sh 执行成功") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 else: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     print("script1.sh 执行失败") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     print(f"错误输出: {result.stderr}") 
			 |