fix some typo

localize isinstalled function
This commit is contained in:
2021-02-23 12:18:00 +01:00
parent fb03f6318c
commit 60f8fb1782

View File

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