X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=zpm-ipkgfile;h=04f980e25b4939df135f5e088c1b14fc8203e481;hb=d3b90e6aa8ab580c77ead76ff5c6c6dca7991cc6;hp=310a7b7cd569ee75ba1b666ce6f146b9cd5ff591;hpb=c4b62e2fc6674d790be58f841221de49bdb4d00a;p=zpackage diff --git a/zpm-ipkgfile b/zpm-ipkgfile index 310a7b7..04f980e 100755 --- a/zpm-ipkgfile +++ b/zpm-ipkgfile @@ -20,7 +20,7 @@ done shift $((OPTIND - 1)) die() { - echo $* 1&>2 + echo $* 1>&2 exit 1 } @@ -60,11 +60,21 @@ for path in $*; do tmppath=$dir/.installing.$name - cat <<-EOC + # can't use install because it's not posix. + # probably worth writing a zpm-install, but with + # a different name since that wants to be a package install + # probably makes the most sense for extract to know how + # 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 chmod $mode $tmppath - mv $tmppath $dir/$name - EOC + # TODO mv -n non-posix, going to need to have extract do all + # of this + mv -n $tmppath $dir/$name + set +x + #EOC done