shithub: ricket

Download patch

ref: 83fa010f51afc97988440755dbc14dbcac854d23
parent: 40cc461479b1bb1a655d42b2ed1924cd81b45210
author: Skyrbunny <[email protected]>
date: Fri Sep 8 13:50:04 EDT 2023

tweaks, bug fixing

binary files a/ricket b/ricket differ
--- a/ricket.go
+++ b/ricket.go
@@ -90,7 +90,10 @@
 	bin_dir := os.Args[4]
 	program_name := os.Args[3]
 
-	os.Mkdir(bin_dir+"/"+program_name, fs.ModeAppend)
+	err := os.Mkdir(bin_dir+"/"+program_name, fs.ModeAppend)
+	if err != nil {
+		fmt.Printf("Error while making destination directory: %s", err)
+	}
 
 	{ // Step 1: Copy wasm file
 		_, wasm_filename := path.Split(wasm_path) // make sure we only get the wasm bit
@@ -176,6 +179,6 @@
 
 install:V:
 	cp %s /$ARCH/%s/bin
-	echo "bind -b /$ARCH/%s/bin /bin" > /usr/$USER/profile
+	echo "bind -b /$ARCH/%s/bin /bin" >> /usr/$USER/lib/profile
 	`, arch, name, name, name)
 } // TODO: Other architectures