mirror of
				https://github.com/shivammathur/setup-php.git
				synced 2025-11-04 17:06:37 +07:00 
			
		
		
		
	Update all lists
This commit is contained in:
		@ -19,12 +19,13 @@ add_log() {
 | 
				
			|||||||
# Function to update php ppa
 | 
					# Function to update php ppa
 | 
				
			||||||
update_ppa() {
 | 
					update_ppa() {
 | 
				
			||||||
  if [ "$ppa_updated" = "false" ]; then
 | 
					  if [ "$ppa_updated" = "false" ]; then
 | 
				
			||||||
    if [[ "$version" =~ $old_versions ]]; then
 | 
					    sudo "$debconf_fix" apt-get update >/dev/null 2>&1
 | 
				
			||||||
      ppa="dotdeb-ubuntu-php*.list"
 | 
					#    if [[ "$version" =~ $old_versions ]]; then
 | 
				
			||||||
    else
 | 
					#      ppa="dotdeb-ubuntu-php*.list"
 | 
				
			||||||
      ppa="ondrej-ubuntu-php*.list"
 | 
					#    else
 | 
				
			||||||
    fi
 | 
					#      ppa="ondrej-ubuntu-php*.list"
 | 
				
			||||||
    find /etc/apt/sources.list.d -type f -name "$ppa" -exec sudo "$debconf_fix" apt-fast update -o Dir::Etc::sourcelist="{}" ';' >/dev/null 2>&1
 | 
					#    fi
 | 
				
			||||||
 | 
					#    find /etc/apt/sources.list.d -type f -name "$ppa" -exec sudo "$debconf_fix" apt-fast update -o Dir::Etc::sourcelist="{}" ';' >/dev/null 2>&1
 | 
				
			||||||
    ppa_updated="true"
 | 
					    ppa_updated="true"
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user