Description
Describe the bug
While starting to use the app for first time, it creates a backup of the credentials file that existed on users .aws directory (Mac client).
If at this point user restarts the application, while you have credentials file empty 0 bytes and no other login config. And restart the app, it notices the empty credentials file, and takes a new "backup" - overwriting the original backup.
Leapp Version
Mac 0.6.0
To Reproduce
Steps to reproduce the behavior:
- Install a fresh Leapp
- Open app, don't add credentials
- Quit app
- Open app again
- Check your homedir
-rw-r--r-- 1 0 Jul 6 12:53 credentials
-rw-r--r-- 1 f 0 Jul 6 12:38 credentials.leapp.bkp
Expected behavior
If credentials.leapp.bkp file exists, that file is not touched again, rather renamed with a random identifier.
Desktop (please complete the following information):
- OS: MacOs
- OS Version 11.4
- Leapp Version 0.6.0