fix some typo
localize isinstalled function
This commit is contained in:
@@ -9,7 +9,7 @@ function e {
|
||||
# arg1: file
|
||||
# arg2: age to compare
|
||||
function _fileOlderThan {
|
||||
test -f "$1" || { return 0 }
|
||||
if [ ! -f $1 ] ; then echo -ne "0;" ; return 0 ; fi
|
||||
test $(find test -mtime +$2)
|
||||
return $?
|
||||
}
|
||||
@@ -151,18 +151,18 @@ function addHeader {
|
||||
}
|
||||
|
||||
# get file md5
|
||||
|
||||
# arg1: file to checksum
|
||||
function md5 {
|
||||
test -f "$1" && local am=$(md5sum "$1" | awk '{print $1}')
|
||||
echo -ne "${am};"
|
||||
}
|
||||
|
||||
# init pkg list
|
||||
function _initPkgList {
|
||||
root="$1"
|
||||
test -f "${1}/tmp/pkg.list" || chroot "$1" sh -c "rpm -qa > /tmp/pkg.list"
|
||||
}
|
||||
|
||||
|
||||
# Ok if given package is installed
|
||||
# arg1: rootfs
|
||||
# arg2: pkg to check
|
||||
|
||||
Reference in New Issue
Block a user