Heat oil over medium heat. Add onion and salt. Cook until soft, 4-5 minutes. Add garlic and curry powder, cook, stirring occasionally until the onion is soft, 4-5 minutes. Add the garlic and curry powder; cook, stirring constantly, until fragrant, about 1 minute.