Skip to content
This repository has been archived by the owner on May 27, 2023. It is now read-only.

Commit

Permalink
remove_bashrc_conf
Browse files Browse the repository at this point in the history
remove code of writing info to configuration files (bashrc)
  • Loading branch information
JasonYangShadow committed Apr 23, 2022
1 parent ee00819 commit ecd829c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
Binary file modified build/linux/x86_64/Linux-x86_64-lpmx
Binary file not shown.
22 changes: 11 additions & 11 deletions container/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,12 +245,12 @@ func Init(reset bool, deppath string, useNewGlibc bool) *Error {
path = fmt.Sprintf("%s:%s", exposed_bin, path)
}

path_var := fmt.Sprintf("PATH=%s", path)
bashrc := fmt.Sprintf("%s/.bashrc", os.Getenv("HOME"))
ferr := AddVartoFile(path_var, bashrc)
if ferr != nil {
return ferr
}
//path_var := fmt.Sprintf("PATH=%s", path)
//bashrc := fmt.Sprintf("%s/.bashrc", os.Getenv("HOME"))
//ferr := AddVartoFile(path_var, bashrc)
//if ferr != nil {
// return ferr
//}
os.Setenv("PATH", path)

host_ld_env := os.Getenv("LD_LIBRARY_PATH")
Expand All @@ -260,11 +260,11 @@ func Init(reset bool, deppath string, useNewGlibc bool) *Error {
} else {
host_ld_env = sys.RootDir
}
ld_var := fmt.Sprintf("LD_LIBRARY_PATH=%s", host_ld_env)
ferr = AddVartoFile(ld_var, bashrc)
if ferr != nil {
return ferr
}
//ld_var := fmt.Sprintf("LD_LIBRARY_PATH=%s", host_ld_env)
//ferr = AddVartoFile(ld_var, bashrc)
//if ferr != nil {
// return ferr
//}
os.Setenv("LD_LIBRARY_PATH", host_ld_env)
}

Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ var (
)

const (
VERSION = "alpha-1.9.1"
VERSION = "alpha-1.9.2"
)

func checkCompleteness() *Error {
Expand Down

0 comments on commit ecd829c

Please sign in to comment.