mirror of
https://github.com/mudler/luet.git
synced 2025-06-28 08:18:46 +00:00
Respect argument passed to Untar in helpers
This commit is contained in:
parent
ea2a60a853
commit
54b0dce54b
@ -21,8 +21,6 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
|
||||||
. "github.com/mudler/luet/pkg/config"
|
|
||||||
|
|
||||||
"github.com/docker/docker/pkg/archive"
|
"github.com/docker/docker/pkg/archive"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -61,7 +59,7 @@ func Untar(src, dest string, sameOwner bool) error {
|
|||||||
}
|
}
|
||||||
defer in.Close()
|
defer in.Close()
|
||||||
|
|
||||||
if LuetCfg.GetGeneral().SameOwner {
|
if sameOwner {
|
||||||
// PRE: i have root privileged.
|
// PRE: i have root privileged.
|
||||||
|
|
||||||
opts := &archive.TarOptions{
|
opts := &archive.TarOptions{
|
||||||
|
Loading…
Reference in New Issue
Block a user