|
|
|
@ -357,7 +357,6 @@ func printRegisterScreen(redisClient *redis.Client) {
|
|
|
|
|
exec.Command("mkdir", "-p", userPath).Run() |
|
|
|
|
|
|
|
|
|
// copy in rc file
|
|
|
|
|
// TODO make sure rc file exists before copying
|
|
|
|
|
hackRCLoc := fmt.Sprintf("%s/.nethackrc", config.NethackLauncher.HackDir) |
|
|
|
|
hackRCDest := fmt.Sprintf("%s/user/%s/.nethackrc", config.NethackLauncher.HackDir, username) |
|
|
|
|
exec.Command("cp", hackRCLoc, hackRCDest).Run() |
|
|
|
|