set -e
for path in $*; do
- echo installing $path from $pkg
- set -x
+ printf '%s installing %s\n' $pkg $path
fhash=$(zpm pkgfileinfo hash $path)
mode=$(zpm pkgfileinfo mode $path)
ftype=$(zpm pkgfileinfo filetype $path)
# to do the extract to temp and such, then
# you can just add the -S option (secure)
#cat <<-EOC
- set -x
mkdir -p $dir
zpm extract $pkgfile $fhash $tmppath 0
chown $owner:$group $tmppath
# TODO mv -n non-posix, going to need to have extract do all
# of this
mv -n $tmppath $dir/$name
- set +x
#EOC
done