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) |