Bugfix for symlinks

This commit is contained in:
2019-03-20 22:51:35 -06:00
parent 2836f43ef6
commit cf3fe25c9a

View File

@@ -77,6 +77,9 @@ func checkActs() (map[string]string, int) {
}
func selectActive(acctpath string) {
os.Remove("headers.txt")
os.Remove("amazon-api.json")
os.Remove("amazon-bearer.json")
err := os.Symlink(path.Join(acctpath, "headers.txt"), "headers.txt")
os.Symlink(path.Join(acctpath, "amazon-api.json"), "amazon-api.json")
os.Symlink(path.Join(acctpath, "amazon-bearer.json"), "amazon-bearer.json")