atratsevskiy
parent 3fdf9dd39b
commit c9c3756326

@ -430,7 +430,7 @@ calculate_change_version() {
# DESCRIPTION: # DESCRIPTION:
# Get latest regular file by name # Get latest regular file by name
get_last_filename() { get_last_filename() {
findfiles=$(ls -d $1/$2*$3 2>/dev/null) findfiles=$(ls -d $1/$2*{-[a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9],[CDGXS]}$3 2>/dev/null)
if [[ -n $findfiles ]] if [[ -n $findfiles ]]
then then
for line in $findfiles for line in $findfiles
@ -476,7 +476,7 @@ calculate_get_current_initrd() {
calculate_pkg_postinst() { calculate_pkg_postinst() {
case "${PN}" in case "${PN}" in
cld-themes|cmc-themes|cds-themes|cls-themes|cldg-themes|cldx-themes) cld-themes|cmc-themes|cds-themes|cls-themes|cldg-themes|cldx-themes)
local initrdfile=$(calculate_get_current_initrd) local initrdfile=$(calculate_get_current_initrd )
local initrdinstallfile=$(calculate_get_current_initrd -install) local initrdinstallfile=$(calculate_get_current_initrd -install)
[[ -f ${ROOT}${initrdfile} ]] && [[ -f ${ROOT}${initrdfile} ]] &&
calculate_update_splash ${ROOT}${initrdfile} calculate_update_splash ${ROOT}${initrdfile}

Loading…
Cancel
Save