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