mirror of
				https://github.com/shivammathur/setup-php.git
				synced 2025-11-04 08:56:36 +07:00 
			
		
		
		
	Create tool_path_dir if it does not exist
This commit is contained in:
		@ -130,6 +130,9 @@ add_tool() {
 | 
			
		||||
  tool=$2
 | 
			
		||||
  ver_param=$3
 | 
			
		||||
  tool_path="$tool_path_dir/$tool"
 | 
			
		||||
  if ! [ -d "$tool_path_dir" ]; then
 | 
			
		||||
    sudo mkdir -p "$tool_path_dir"
 | 
			
		||||
  fi
 | 
			
		||||
  add_path "$tool_path_dir"
 | 
			
		||||
  if [ -e "$tool_path" ]; then
 | 
			
		||||
    sudo cp -aL "$tool_path" /tmp/"$tool"
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user