1365 |
done |
done |
1366 |
|
|
1367 |
# clean up backup files (foo~) |
# clean up backup files (foo~) |
1368 |
find ${MAGEDIR} -name *~ -exec rm '{}' ';' |
find ${MAGEDIR} -name \*~ -exec rm '{}' ';' |
1369 |
|
|
1370 |
# check if a newer mage version is available |
# check if a newer mage version is available |
1371 |
is_newer_mage_version_available |
is_newer_mage_version_available |
1575 |
local magefile |
local magefile |
1576 |
|
|
1577 |
# do not list the content of a directory, only the name (-d) |
# do not list the content of a directory, only the name (-d) |
1578 |
for magefile in $(ls --format=single-column -v -d ${MAGEDIR}/${PCAT}/${PNAME}/*) |
for magefile in $(ls --format=single-column -v -d ${MAGEDIR}/${PCAT}/${PNAME}/* 2> /dev/null) |
1579 |
do |
do |
1580 |
[[ -z ${magefile} ]] && continue |
[[ -z ${magefile} ]] && continue |
1581 |
# we exclude subdirs (for stuff like a md5sum dir) |
# we exclude subdirs (for stuff like a md5sum dir) |
3089 |
then |
then |
3090 |
# needs busybox support |
# needs busybox support |
3091 |
return 0 |
return 0 |
|
else |
|
|
# no busybox |
|
|
return 1 |
|
3092 |
fi |
fi |
3093 |
fi |
fi |
3094 |
|
|
3095 |
|
# no busybox |
3096 |
|
return 1 |
3097 |
} |
} |
3098 |
|
|
3099 |
# busybox_filter_wget_options ${wget_opts} |
# busybox_filter_wget_options ${wget_opts} |