Always use freeflow org

This commit is contained in:
Scott Yeager
2025-10-09 14:59:12 -07:00
parent eff373fb71
commit 1a46cc5e1e

View File

@@ -42,20 +42,7 @@ fn addtoscript(tofind string, toadd string) ! {
os.write_file(rc_file, new_content)!
}
abs_dir_of_script := dir(@FILE)
// Determine the organization name from the current path
// This makes the script work with any organization (incubaid, freeflowuniverse, etc.)
path_parts := abs_dir_of_script.split('/')
mut org_name := 'freeflowuniverse' // default fallback
for i, part in path_parts {
if part == 'github' && i + 1 < path_parts.len {
org_name = path_parts[i + 1]
break
}
}
println('Detected organization: ${org_name}')
mut org_name := 'freeflowuniverse'
// Reset symlinks for both possible organizations (cleanup)
println('Resetting all symlinks...')